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.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.8
  • WordPress version: 5.8.1
  • First release: Oct 10, 2013
  • Latest release: Sep 14, 2021
  • Number of updates: 274
  • Update frequency: every 10.6 days
  • Top authors: mpol (100%)

Code review

54 tests

User reviews

77 reviews

Install metrics

40,000+ active / 352,026 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.17MB] [CPU: ▼138.30ms] 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 /2.89 ▲0.1732.47 ▲11.14
Dashboard /wp-admin3.23 ▲0.1852.36 ▲0.18
Posts /wp-admin/edit.php3.34 ▲0.2454.55 ▲7.82
Add New Post /wp-admin/post-new.php5.59 ▲0.1695.39 ▼565.74
Media Library /wp-admin/upload.php3.17 ▲0.1740.01 ▲4.55
Order Navigation Menus /wp-admin/admin.php?page=customtaxorder-nav_menu3.1535.66
Order Link Categories /wp-admin/admin.php?page=customtaxorder-link_category3.1535.31
Term Order /wp-admin/admin.php?page=customtaxorder3.1432.49
Order Formats /wp-admin/admin.php?page=customtaxorder-post_format3.1531.68
Order Themes /wp-admin/admin.php?page=customtaxorder-wp_theme3.1534.48
About /wp-admin/admin.php?page=customtaxorder-about3.1437.02
Order Taxonomies /wp-admin/admin.php?page=customtaxorder-taxonomies3.1434.54
Order Tags /wp-admin/admin.php?page=customtaxorder-post_tag3.1533.51
Order Categories /wp-admin/admin.php?page=customtaxorder-category3.1437.77

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 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,772 ▲17615.88 ▲0.3911.92 ▲2.0443.06 ▼5.40
Dashboard /wp-admin3,042 ▲1115.87 ▼0.08138.41 ▼50.17108.90 ▼13.59
Posts /wp-admin/edit.php2,808 ▲692.68 ▼0.0169.37 ▼1.8090.97 ▼7.38
Add New Post /wp-admin/post-new.php1,726 ▲4318.52 ▼0.21386.47 ▼14.91116.43 ▼1.60
Media Library /wp-admin/upload.php1,876 ▲695.07 ▲0.06166.96 ▲8.59133.08 ▲9.91
Order Navigation Menus /wp-admin/admin.php?page=customtaxorder-nav_menu1,1852.5558.0777.87
Order Link Categories /wp-admin/admin.php?page=customtaxorder-link_category1,1882.5563.4987.13
Term Order /wp-admin/admin.php?page=customtaxorder1,1572.3766.7180.85
Order Formats /wp-admin/admin.php?page=customtaxorder-post_format1,1882.5570.0878.79
Order Themes /wp-admin/admin.php?page=customtaxorder-wp_theme1,1852.5356.1770.72
About /wp-admin/admin.php?page=customtaxorder-about1,1442.3761.2382.01
Order Taxonomies /wp-admin/admin.php?page=customtaxorder-taxonomies1,1882.4869.2484.82
Order Tags /wp-admin/admin.php?page=customtaxorder-post_tag1,1852.5459.3980.77
Order Categories /wp-admin/admin.php?page=customtaxorder-category1,2732.5758.5091.26

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_filter() in wp-content/plugins/custom-taxonomy-order-ne/customtaxorder.php:119
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-taxonomy-order-ne/taxonomies.php:174
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-taxonomy-order-ne/admin-customtaxorder.php:26

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, taxonomy order, category order, term order

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

The primary PHP file in "Custom Taxonomy Order" version 3.3.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,208 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP4203242822
PO File493129255
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%
Functions36
▷ Named functions36100.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-128x128.png2.20KB1.81KB▼ 17.93%
images/icon-256x256.png3.82KB3.10KB▼ 18.78%