84% reorder-terms

Code Review | Reorder Terms

WordPress plugin Reorder Terms scored84%from 54 tests.

About plugin

  • Plugin page: reorder-terms
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Oct 4, 2015
  • Latest release: Mar 18, 2023
  • Number of updates: 29
  • Update frequency: every 93.9 days
  • Top authors: ronalfy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /8,759 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.43ms] Passed 4 tests

A check of server-side resources used by Reorder Terms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.40 ▲1.98
Dashboard /wp-admin3.32 ▲0.0246.93 ▼4.82
Posts /wp-admin/edit.php3.37 ▲0.0249.71 ▼3.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.06 ▼3.07
Media Library /wp-admin/upload.php3.24 ▲0.0237.36 ▼2.10

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Reorder Terms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▲0.061.78 ▼0.0344.03 ▲2.36
Dashboard /wp-admin2,195 ▲185.60 ▼0.0886.82 ▼2.5239.63 ▼2.66
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0534.53 ▼0.0435.05 ▼2.63
Add New Post /wp-admin/post-new.php1,528 ▲222.95 ▼0.16656.35 ▼45.1666.12 ▲0.25
Media Library /wp-admin/upload.php1,394 ▼94.14 ▼0.0594.75 ▼17.5943.93 ▼8.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reorder-terms/reorder-terms.php:131

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: reorder, reorder terms

reorder-terms/reorder-terms.php 92% from 13 tests

The primary PHP file in "Reorder Terms" version 1.1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin489 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP266184412
Markdown112044
JavaScript11233

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity34.00
▷ Minimum class complexity8.00
▷ Maximum class complexity60.00
Average method complexity5.12
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods16
▷ Static methods16.25%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected