84% custom-taxonomy-order-ne

Code Review | Custom Taxonomy Order

WordPress plugin Custom Taxonomy Order scored84%from 54 tests.

About plugin

  • Plugin page: custom-taxonomy-o...
  • Plugin version: 4.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.4
  • WordPress version: 6.3.1
  • First release: Oct 10, 2013
  • Latest release: Nov 14, 2023
  • Number of updates: 291
  • Update frequency: every 12.7 days
  • Top authors: mpol (100%)

Code review

54 tests

User reviews

86 reviews

Install metrics

50,000+ active /547,923 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.16MB] [CPU: ▼12.84ms] 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.54 ▲0.0735.38 ▼5.87
Dashboard /wp-admin3.50 ▲0.1648.26 ▼8.75
Posts /wp-admin/edit.php3.62 ▲0.2650.42 ▲3.47
Add New Post /wp-admin/post-new.php6.09 ▲0.2082.52 ▼40.20
Media Library /wp-admin/upload.php3.42 ▲0.2038.05 ▲4.90
Term Order /wp-admin/tools.php?page=customtaxorder3.3931.28
Order Link Categories /wp-admin/admin.php?page=customtaxorder-link_category3.4033.55
About /wp-admin/admin.php?page=customtaxorder-about3.3932.55
Order Tags /wp-admin/admin.php?page=customtaxorder-post_tag3.4033.96
Order Taxonomies /wp-admin/admin.php?page=customtaxorder-taxonomies3.3933.31
Order Categories /wp-admin/admin.php?page=customtaxorder-category3.3936.71
Order Themes /wp-admin/admin.php?page=customtaxorder-wp_theme3.4032.34
Order Formats /wp-admin/admin.php?page=customtaxorder-post_format3.4033.74
Order Template Part Areas /wp-admin/admin.php?page=customtaxorder-wp_template_part_area3.4033.41
Order Navigation Menus /wp-admin/admin.php?page=customtaxorder-nav_menu3.4034.22

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: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
category_children
db_upgraded
can_compress_scripts
widget_theysaidso_widget

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 /2,794 ▲4714.67 ▲0.291.69 ▼0.0746.44 ▲4.91
Dashboard /wp-admin2,199 ▲215.63 ▼0.2995.67 ▼19.4545.26 ▲3.31
Posts /wp-admin/edit.php2,107 ▲71.99 ▲0.0141.95 ▲1.2235.69 ▼1.59
Add New Post /wp-admin/post-new.php1,529 ▲322.75 ▼0.27676.17 ▼13.1252.30 ▼2.01
Media Library /wp-admin/upload.php1,401 ▼24.13 ▼0.03105.44 ▲2.6144.17 ▼2.13
Term Order /wp-admin/tools.php?page=customtaxorder8652.1529.7129.15
Order Link Categories /wp-admin/admin.php?page=customtaxorder-link_category8991.8125.7228.23
About /wp-admin/admin.php?page=customtaxorder-about8562.2625.0328.69
Order Tags /wp-admin/admin.php?page=customtaxorder-post_tag8991.8326.3127.47
Order Taxonomies /wp-admin/admin.php?page=customtaxorder-taxonomies8702.0136.7128.71
Order Categories /wp-admin/admin.php?page=customtaxorder-category9461.8631.8731.64
Order Themes /wp-admin/admin.php?page=customtaxorder-wp_theme9001.8226.0925.55
Order Formats /wp-admin/admin.php?page=customtaxorder-post_format8991.8124.6626.78
Order Template Part Areas /wp-admin/admin.php?page=customtaxorder-wp_template_part_area9031.8125.1427.17
Order Navigation Menus /wp-admin/admin.php?page=customtaxorder-nav_menu8991.8025.9026.36

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 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • 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/taxonomies.php:180
    • > 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/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: taxonomy order, category order, term order, order

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

The primary PHP file in "Custom Taxonomy Order" version 4.0.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,099 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4225295961
JavaScript1241473
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%