84% wp-taxonomy-order

Code Review | WP Taxonomy Order

WordPress plugin WP Taxonomy Order scored84%from 54 tests.

About plugin

  • Plugin page: wp-taxonomy-order
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 10, 2020
  • Latest release: Jan 6, 2023
  • Number of updates: 12
  • Update frequency: every 70.8 days
  • Top authors: nutttaro (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /6,185 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by WP Taxonomy Order
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.90 ▼1.03
Dashboard /wp-admin3.37 ▲0.0747.14 ▼0.08
Posts /wp-admin/edit.php3.49 ▲0.1350.60 ▲4.86
Add New Post /wp-admin/post-new.php5.95 ▲0.0786.65 ▼15.41
Media Library /wp-admin/upload.php3.29 ▲0.0737.42 ▲6.28

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

WP Taxonomy Order: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.62 ▼0.592.02 ▲0.3042.00 ▼3.91
Dashboard /wp-admin2,225 ▲374.86 ▼0.01110.31 ▲6.6736.55 ▼6.22
Posts /wp-admin/edit.php2,105 ▲162.02 ▼0.0138.89 ▼4.2233.87 ▼2.69
Add New Post /wp-admin/post-new.php1,546 ▲2723.14 ▼0.02671.13 ▲32.8058.15 ▲7.47
Media Library /wp-admin/upload.php1,407 ▲284.17 ▼0.18102.54 ▲0.3243.45 ▲0.57

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 were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-taxonomy-order/wp-taxonomy-order.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

wp-taxonomy-order/wp-taxonomy-order.php 92% from 13 tests

Analyzing the main PHP file in "WP Taxonomy Order" version 1.0.5
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin416 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP380116280
JavaScript2168114
CSS20022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity25.50
▷ Minimum class complexity6.00
▷ Maximum class complexity45.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin