90% wp-term-order

Code Review | WP Term Order

WordPress plugin WP Term Order scored90%from 54 tests.

About plugin

  • Plugin page: wp-term-order
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.5
  • WordPress version: 6.3.1
  • First release: Aug 13, 2015
  • Latest release: Jul 30, 2020
  • Number of updates: 28
  • Update frequency: every 64.8 days
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

8,000+ active /94,295 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.72ms] Passed 4 tests

Server-side resources used by WP Term Order
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.29 ▼1.14
Dashboard /wp-admin3.33 ▼0.0250.47 ▼18.73
Posts /wp-admin/edit.php3.44 ▲0.0950.98 ▼9.89
Add New Post /wp-admin/post-new.php5.91 ▲0.02101.03 ▲13.28
Media Library /wp-admin/upload.php3.25 ▲0.0236.31 ▼1.13

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
wpdb_term_taxonomy_version
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Term Order
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲5414.41 ▼0.181.91 ▼0.1442.94 ▼5.51
Dashboard /wp-admin2,195 ▲185.58 ▼0.0784.51 ▼12.9538.93 ▼6.99
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0141.44 ▲5.8735.75 ▲0.18
Add New Post /wp-admin/post-new.php1,545 ▲1423.10 ▼0.26616.19 ▼86.7449.42 ▼23.27
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.0496.99 ▼10.1942.69 ▼2.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • wpdb_term_taxonomy_version
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: term, taxonomy, order

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

The entry point to "WP Term Order" version 1.0.0 is a PHP file that has certain tags in its header comment area
29 characters long description:
Sort taxonomy terms, your way

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin509 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1134267394
JavaScript23339115

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity68.00
▷ Minimum class complexity68.00
▷ Maximum class complexity68.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods21
▷ Static methods419.05%
▷ Public methods1885.71%
▷ Protected methods00.00%
▷ Private methods314.29%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin