90% wp-term-authors

Code Review | WP Term Authors

WordPress plugin WP Term Authors scored90%from 54 tests.

About plugin

  • Plugin page: wp-term-authors
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Sep 2, 2015
  • Latest release: Jan 8, 2016
  • Number of updates: 6
  • Update frequency: every 21.3 days
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,138 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼11.27ms] Passed 4 tests

A check of server-side resources used by WP Term Authors
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1147.00 ▼6.42
Dashboard /wp-admin3.41 ▲0.0657.13 ▼9.65
Posts /wp-admin/edit.php3.52 ▲0.1759.14 ▼23.88
Add New Post /wp-admin/post-new.php5.99 ▲0.1099.15 ▼5.12
Media Library /wp-admin/upload.php3.33 ▲0.1042.57 ▲0.64

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
wpdb_term_authors_version
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Term Authors
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.77 ▲0.552.32 ▲0.1847.08 ▼4.94
Dashboard /wp-admin2,206 ▲185.91 ▲1.01109.11 ▼35.8439.15 ▼3.87
Posts /wp-admin/edit.php2,092 ▼02.05 ▲0.0641.04 ▼97.9133.44 ▼50.56
Add New Post /wp-admin/post-new.php1,538 ▲1922.89 ▼0.12683.51 ▼110.4353.72 ▼2.76
Media Library /wp-admin/upload.php1,388 ▲34.15 ▼0.08119.62 ▼1.8952.16 ▼1.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • wpdb_term_authors_version
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Category Authors)
Please take inspiration from this readme.txt

wp-term-authors/wp-term-authors.php Passed 13 tests

Analyzing the main PHP file in "WP Term Authors" version 0.2.0
54 characters long description:
Authors for categories, tags, and other taxonomy terms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected372 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3154401339
Markdown119033

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity18.50
▷ Minimum class complexity8.00
▷ Maximum class complexity29.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods34
▷ Static methods00.00%
▷ Public methods2779.41%
▷ Protected methods38.82%
▷ Private methods411.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected