84% term-management-tools

Code Review | Term Management Tools

WordPress plugin Term Management Tools scored84%from 54 tests.

About plugin

  • Plugin page: term-management-t...
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.6
  • WordPress version: 6.3.1
  • First release: Aug 26, 2010
  • Latest release: Dec 10, 2020
  • Number of updates: 35
  • Update frequency: every 107.4 days
  • Top authors: scribu (94.29%)theMikeD (8.57%)

Code review

54 tests

User reviews

75 reviews

Install metrics

20,000+ active /307,621 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼3.88ms] Passed 4 tests

Server-side resources used by Term Management Tools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.62 ▲5.63
Dashboard /wp-admin3.31 ▼0.0346.14 ▼12.98
Posts /wp-admin/edit.php3.43 ▲0.0748.15 ▲3.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.99 ▼10.06
Media Library /wp-admin/upload.php3.23 ▲0.0135.05 ▲3.61

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Term Management Tools
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.121.83 ▲0.1644.55 ▲2.54
Dashboard /wp-admin2,203 ▲155.83 ▲0.9298.25 ▼3.5240.39 ▼2.39
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0936.56 ▲1.4333.31 ▼1.64
Add New Post /wp-admin/post-new.php1,533 ▼023.32 ▲0.11634.95 ▼1.3458.97 ▲12.75
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.05101.21 ▲3.5744.63 ▲1.86

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • 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
Good news, no errors were detected

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
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'CNMD\\TMT\\Base' not found in wp-content/plugins/term-management-tools/classes/class-HTML.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/term-management-tools/term-management-tools.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'CNMD\\TMT\\Base' not found in wp-content/plugins/term-management-tools/classes/class-TermManagementTools.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'CNMD\\TMT\\Base' not found in wp-content/plugins/term-management-tools/classes/class-WPML.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CNMD\\TMT\\Base' not found in wp-content/plugins/term-management-tools/classes/class-Handlers.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

term-management-tools/term-management-tools.php 92% from 13 tests

The main file in "Term Management Tools" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 165 characters long)

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
Everything looks great! No dangerous files found in this plugin779 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP6146415526
PO File75789204
JavaScript24049

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity18.00
▷ Minimum class complexity8.00
▷ Maximum class complexity27.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods1137.93%
▷ Protected methods620.69%
▷ Private methods1241.38%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin