84% custom-taxonomy-order-ne

Code Review | Custom Taxonomy Order

WordPress plugin Custom Taxonomy Order scored 84% from 54 tests.

About plugin

  • Plugin page: custom-taxonomy-o...
  • Plugin version: 3.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.9
  • WordPress version: 5.9.2
  • First release: Oct 10, 2013
  • Latest release: Mar 14, 2022
  • Number of updates: 279
  • Update frequency: every 11.0 days
  • Top authors: mpol (100%)

Code review

54 tests

User reviews

77 reviews

Install metrics

40,000+ active / 421,661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼290.26ms] Passed 4 tests

A check of server-side resources used by Custom Taxonomy Order
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1057.03 ▲3.72
Dashboard /wp-admin3.61 ▲0.2039.05 ▲4.11
Posts /wp-admin/edit.php3.83 ▲0.1938.81 ▲4.06
Add New Post /wp-admin/post-new.php7.07 ▲0.1097.31 ▼1,169.48
Media Library /wp-admin/upload.php3.49 ▲0.2026.79 ▲0.66
Order Formats /wp-admin/admin.php?page=customtaxorder-post_format3.4624.87
Order Template Part Areas /wp-admin/admin.php?page=customtaxorder-wp_template_part_area3.4724.85
Order Taxonomies /wp-admin/admin.php?page=customtaxorder-taxonomies3.4623.03
Order Themes /wp-admin/admin.php?page=customtaxorder-wp_theme3.4724.77
Term Order /wp-admin/admin.php?page=customtaxorder3.4622.99
About /wp-admin/admin.php?page=customtaxorder-about3.4623.92
Order Tags /wp-admin/admin.php?page=customtaxorder-post_tag3.4623.76
Order Link Categories /wp-admin/admin.php?page=customtaxorder-link_category3.4724.94
Order Navigation Menus /wp-admin/admin.php?page=customtaxorder-nav_menu3.4623.98
Order Categories /wp-admin/admin.php?page=customtaxorder-category3.4530.42

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 1 new option
New WordPress options
category_children

Browser metrics Passed 4 tests

Custom Taxonomy Order: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,857 ▲11315.85 ▼0.125.48 ▼0.442.17 ▲0.07
Dashboard /wp-admin2,967 ▲1096.14 ▼0.04115.23 ▼20.30153.75 ▼8.88
Posts /wp-admin/edit.php2,766 ▲753.25 ▲0.0166.04 ▲4.01136.41 ▼6.78
Add New Post /wp-admin/post-new.php1,806 ▲5422.64 ▲1.19393.83 ▼68.94155.91 ▲0.40
Media Library /wp-admin/upload.php1,774 ▲795.49 ▼0.01149.15 ▲1.84193.68 ▲9.76
Order Formats /wp-admin/admin.php?page=customtaxorder-post_format1,1682.8553.86112.03
Order Template Part Areas /wp-admin/admin.php?page=customtaxorder-wp_template_part_area1,1672.8454.37112.36
Order Taxonomies /wp-admin/admin.php?page=customtaxorder-taxonomies1,1672.8358.70131.02
Order Themes /wp-admin/admin.php?page=customtaxorder-wp_theme1,2372.8957.75126.83
Term Order /wp-admin/admin.php?page=customtaxorder1,1562.7753.62112.24
About /wp-admin/admin.php?page=customtaxorder-about1,1202.7753.22109.34
Order Tags /wp-admin/admin.php?page=customtaxorder-post_tag1,1642.8555.38109.60
Order Link Categories /wp-admin/admin.php?page=customtaxorder-link_category1,1652.8553.49114.53
Order Navigation Menus /wp-admin/admin.php?page=customtaxorder-nav_menu1,1652.8555.93114.37
Order Categories /wp-admin/admin.php?page=customtaxorder-category1,2372.8958.64121.90

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
  • The uninstall procedure has failed, leaving 1 option in the database
    • category_children

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-taxonomy-order-ne/admin-customtaxorder.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-taxonomy-order-ne/taxonomies.php:180
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-taxonomy-order-ne/customtaxorder.php:131

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: order, term order, category order, taxonomy order

custom-taxonomy-order-ne/customtaxorder.php 92% from 13 tests

The primary PHP file in "Custom Taxonomy Order" version 3.4.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("custom-taxonomy-order-ne.php" instead of "customtaxorder.php")

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
No dangerous file extensions were detected1,012 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4214278881
JavaScript1201366
CSS16665

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-256x256.png3.82KB3.10KB▼ 18.78%
images/icon-128x128.png2.20KB1.81KB▼ 17.93%