84% simple-taxonomy-ordering

Code Review | Simple Taxonomy Ordering

WordPress plugin Simple Taxonomy Ordering scored 84% from 54 tests.

About plugin

  • Plugin page: simple-taxonomy-o...
  • Plugin version: 2.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Dec 14, 2015
  • Latest release: Mar 22, 2023
  • Number of updates: 85
  • Update frequency: every 31.2 days
  • Top authors: yikesitskevin (61.18%)eherman24 (20%)fmixell (12.94%)yikesinc (8.24%)jpowersdev (2.35%)

Code review

54 tests

User reviews

28 reviews

Install metrics

20,000+ active / 255,434 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.94ms] Passed 4 tests

Analyzing server-side resources used by Simple Taxonomy Ordering
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.23 ▲1.47
Dashboard /wp-admin3.39 ▲0.0946.36 ▼7.74
Posts /wp-admin/edit.php3.50 ▲0.1448.75 ▲0.23
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.32 ▼8.33
Media Library /wp-admin/upload.php3.31 ▲0.0834.82 ▲0.07
Simple Tax. Ordering /wp-admin/options-general.php?page=yikes-simple-taxonomy-ordering3.2832.20

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Taxonomy Ordering
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲6313.67 ▼0.711.74 ▲0.0442.93 ▲3.62
Dashboard /wp-admin2,201 ▲165.84 ▲0.9598.18 ▼4.4736.56 ▼7.38
Posts /wp-admin/edit.php2,087 ▼22.04 ▼0.0140.69 ▲0.0126.87 ▼11.69
Add New Post /wp-admin/post-new.php1,530 ▼1223.33 ▲5.18621.68 ▼6.5756.65 ▼0.36
Media Library /wp-admin/upload.php1,386 ▼54.26 ▼0.0493.61 ▼2.9638.00 ▼6.91
Simple Tax. Ordering /wp-admin/options-general.php?page=yikes-simple-taxonomy-ordering8992.1233.1037.22

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-taxonomy-ordering/yikes-custom-taxonomy-order.php:73
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-taxonomy-ordering/lib/options.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: reorder, meta, taxonomy, order, term...

simple-taxonomy-ordering/yikes-custom-taxonomy-order.php 92% from 13 tests

"Simple Taxonomy Ordering" version 2.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-taxonomy-ordering.php" instead of "yikes-custom-taxonomy-order.php")

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
No dangerous file extensions were detected785 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS3560433
PHP367182296
JavaScript59956

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity22.50
▷ Minimum class complexity17.00
▷ Maximum class complexity28.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods2076.92%
▷ Protected methods13.85%
▷ Private methods519.23%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin