84% terms-order

Code Review | Terms Order

WordPress plugin Terms Order scored84%from 54 tests.

About plugin

  • Plugin page: terms-order
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2021
  • Latest release: Oct 10, 2021
  • Number of updates: 25
  • Update frequency: every 0.2 days
  • Top authors: twinthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /355 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: ▼1.88ms] Passed 4 tests

This is a short check of server-side resources used by Terms Order
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0843.37 ▲3.93
Dashboard /wp-admin3.38 ▲0.0846.25 ▼4.92
Posts /wp-admin/edit.php3.49 ▲0.1450.67 ▲3.10
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.99 ▼9.47
Media Library /wp-admin/upload.php3.30 ▲0.0738.00 ▲3.78
Terms Order /wp-admin/edit.php?page=ttto-post3.2932.36

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Terms Order
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.21 ▼1.071.74 ▲0.0142.34 ▼4.49
Dashboard /wp-admin2,211 ▲595.76 ▲0.0796.97 ▼12.8040.78 ▼5.63
Posts /wp-admin/edit.php2,101 ▲122.08 ▲0.0739.71 ▲2.2333.69 ▼0.91
Add New Post /wp-admin/post-new.php1,521 ▼2123.17 ▲4.73588.20 ▼63.6256.68 ▼1.39
Media Library /wp-admin/upload.php1,396 ▲114.14 ▼0.03101.43 ▲5.1144.54 ▲1.82
Terms Order /wp-admin/edit.php?page=ttto-post8102.0730.3827.83

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please 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 _e() in wp-content/plugins/terms-order/terms-order/admin/templates/terms-order-output.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/terms-order/admin/templates/terms-order-output.php:2

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === terms-order === )
The official readme.txt might help

terms-order/terms-order.php Passed 13 tests

Analyzing the main PHP file in "Terms Order" version 1.0.2
65 characters long description:
A simple plugin to reorder categories and custom post taxonomies.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin610 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP14227393531
CSS16062
JavaScript12217

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity6.12
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods70
▷ Static methods45.71%
▷ Public methods6085.71%
▷ Protected methods00.00%
▷ Private methods1014.29%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
There were not PNG files found in your plugin