84% reorder-by-term

Code Review | Reorder by Term

WordPress plugin Reorder by Term scored84%from 54 tests.

About plugin

  • Plugin page: reorder-by-term
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2015
  • Latest release: Mar 18, 2023
  • Number of updates: 35
  • Update frequency: every 84.9 days
  • Top authors: ronalfy (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /15,379 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.31ms] Passed 4 tests

This is a short check of server-side resources used by Reorder by Term
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.94 ▲0.56
Dashboard /wp-admin3.34 ▲0.0448.85 ▲1.98
Posts /wp-admin/edit.php3.39 ▲0.0347.64 ▲3.98
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.57 ▼15.92
Media Library /wp-admin/upload.php3.26 ▲0.0332.93 ▲0.15

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Reorder by Term
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.61 ▼0.764.45 ▲2.6938.46 ▼2.38
Dashboard /wp-admin2,203 ▲175.81 ▼0.0999.65 ▼11.5838.39 ▼3.03
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0240.01 ▲2.4635.44 ▼0.75
Add New Post /wp-admin/post-new.php1,521 ▼1223.66 ▲0.46644.83 ▼9.6950.01 ▼5.76
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0494.13 ▼4.5045.76 ▲4.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× 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/reorder-by-term/reorder-by-term.php:301

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
3 plugin tags: category, reorder, reorder by term

reorder-by-term/reorder-by-term.php Passed 13 tests

The main PHP script in "Reorder by Term" version 1.2.3 is automatically included on every request by WordPress
21 characters long description:
Reorder Posts by Term

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin843 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4115298751
JavaScript2101092

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity47.00
▷ Minimum class complexity25.00
▷ Maximum class complexity80.00
Average method complexity5.76
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes3100.00%
Methods29
▷ Static methods13.45%
▷ Public methods2586.21%
▷ Protected methods00.00%
▷ Private methods413.79%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected