84% terms-order-wp

Code Review | Terms Order WP - Categories And Taxonomies Order Plugin

WordPress plugin Terms Order WP - Categories And Taxonomies Order Plugin scored84%from 54 tests.

About plugin

  • Plugin page: terms-order-wp
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 18, 2022
  • Latest release: May 17, 2023
  • Number of updates: 17
  • Update frequency: every 28.5 days
  • Top authors: designinvento (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /8,690 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.96ms] Passed 4 tests

Analyzing server-side resources used by Terms Order WP - Categories And Taxonomies Order Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0846.58 ▲3.14
Dashboard /wp-admin3.38 ▲0.0451.70 ▼19.60
Posts /wp-admin/edit.php3.49 ▲0.1450.63 ▲0.26
Add New Post /wp-admin/post-new.php5.98 ▲0.1096.48 ▼6.22
Media Library /wp-admin/upload.php3.30 ▲0.0739.05 ▲1.71
Terms Order /wp-admin/edit.php?page=wpto-post3.2939.51

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Terms Order WP - Categories And Taxonomies Order Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.24 ▼0.111.86 ▲0.1644.60 ▼0.95
Dashboard /wp-admin2,203 ▲235.65 ▲0.0592.62 ▼10.5044.49 ▼3.82
Posts /wp-admin/edit.php2,115 ▲152.06 ▲0.0541.05 ▲1.8337.45 ▼1.33
Add New Post /wp-admin/post-new.php1,541 ▲1318.28 ▼4.80606.17 ▼61.5171.88 ▲18.96
Media Library /wp-admin/upload.php1,411 ▲144.17 ▼0.0297.89 ▼8.5242.56 ▲0.42
Terms Order /wp-admin/edit.php?page=wpto-post8391.9430.1627.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/terms-order-wp/admin/templates/terms-order-wp-output.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can take inspiration from this readme.txt

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

"Terms Order WP - Categories And Taxonomies Order Plugin" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
A simple plugin to reorder categories and custom post taxonomies.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin522 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP12182289443
CSS16062
JavaScript12217

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity6.12
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin