10% tag-or-category-term-group-order

Code Review | Tag or Category term_group Order

WordPress plugin Tag or Category term_group Order scored10%from 54 tests.

About plugin

  • Plugin page: tag-or-category-t...
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 6.3.1
  • First release: Jul 19, 2011
  • Latest release: Apr 1, 2016
  • Number of updates: 16
  • Update frequency: every 107.4 days
  • Top authors: ravidreams (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /5,134 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/tag-or-category-term-group-order/tag-or-category-term-group-order.php+64
    Non-static method TCTGO_Plugin::get_instance() should not be called statically

Server metrics [RAM: ▼1.91MB] [CPU: ▼57.65ms] Passed 4 tests

An overview of server-side resources used by Tag or Category term_group Order
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.71 ▼41.96
Dashboard /wp-admin2.10 ▼1.2110.97 ▼43.69
Posts /wp-admin/edit.php2.10 ▼1.266.25 ▼46.86
Add New Post /wp-admin/post-new.php2.10 ▼3.796.06 ▼98.09
Media Library /wp-admin/upload.php2.10 ▼1.137.20 ▼31.74

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tag or Category term_group Order
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.16 ▼0.411.93 ▲0.2439.59 ▼4.27
Dashboard /wp-admin2,192 ▲185.51 ▼0.1092.74 ▲0.7040.39 ▼0.13
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0639.21 ▲3.6234.52 ▼4.30
Add New Post /wp-admin/post-new.php1,526 ▼023.24 ▼0.36686.88 ▲3.9653.75 ▼8.03
Media Library /wp-admin/upload.php1,403 ▲34.11 ▼0.13102.10 ▼13.6845.21 ▼1.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/tag-or-category-term-group-order/tag-or-category-term-group-order.php+64
    Non-static method TCTGO_Plugin::get_instance() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 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/tag-or-category-term-group-order/lib/tctgo_plugin.class.php:22

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

tag-or-category-term-group-order/tag-or-category-term-group-order.php Passed 13 tests

This is the main PHP file of "Tag or Category term_group Order" version 0.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
To sort categories or tags based on groups.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin102 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2993493
CSS1009

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
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