84% i-order-terms

Code Review | I Order Terms

WordPress plugin I Order Terms scored84%from 54 tests.

About plugin

  • Plugin page: i-order-terms
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2
  • WordPress version: 6.3.1
  • First release: Dec 24, 2013
  • Latest release: Jul 3, 2019
  • Number of updates: 30
  • Update frequency: every 67.2 days
  • Top authors: x64igor (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /15,483 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by I Order Terms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.79 ▼0.36
Dashboard /wp-admin3.33 ▲0.0345.21 ▼7.51
Posts /wp-admin/edit.php3.44 ▲0.0945.82 ▲1.42
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.53 ▼8.19
Media Library /wp-admin/upload.php3.25 ▲0.0334.86 ▲1.30
I Order Terms /wp-admin/options-general.php?page=i-order-terms-options3.2232.91

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

I Order Terms: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.68 ▼0.681.69 ▼0.0340.77 ▼5.58
Dashboard /wp-admin2,213 ▲224.80 ▼0.09102.56 ▲0.0040.16 ▼0.21
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0334.77 ▲0.0130.27 ▼5.54
Add New Post /wp-admin/post-new.php1,545 ▲1118.60 ▼4.78635.69 ▼40.6254.27 ▲0.26
Media Library /wp-admin/upload.php1,395 ▲104.26 ▼0.0395.38 ▼10.8543.11 ▼6.42
I Order Terms /wp-admin/options-general.php?page=i-order-terms-options8412.0323.9728.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/i-order-terms/i-order-terms.php
    • > /wp-content/plugins/i-order-terms/code/class-i-order-terms.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: terms, sort, taxonomy, order

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

Analyzing the main PHP file in "I Order Terms" version 1.5.0
87 characters long description:
Allows theme developers to add order/sort functionality for categories, tags and terms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected516 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4152257396
JavaScript23124109
CSS21411

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity85.00
▷ Minimum class complexity85.00
▷ Maximum class complexity85.00
Average method complexity5.20
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods210.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin