84% taxonomy-toolbox

Code Review | Taxonomy Toolbox

WordPress plugin Taxonomy Toolbox scored84%from 54 tests.

About plugin

  • Plugin page: taxonomy-toolbox
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 11, 2015
  • Latest release: Oct 20, 2015
  • Number of updates: 9
  • Update frequency: every 1.1 days
  • Top authors: pantsonhead (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,396 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.87ms] Passed 4 tests

Analyzing server-side resources used by Taxonomy Toolbox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.58 ▼4.68
Dashboard /wp-admin3.36 ▲0.0649.98 ▼6.40
Posts /wp-admin/edit.php3.41 ▲0.0653.64 ▲3.32
Add New Post /wp-admin/post-new.php5.94 ▲0.0697.23 ▼3.72
Media Library /wp-admin/upload.php3.28 ▲0.0637.83 ▲5.43
Taxonomy Toolbox /wp-admin/options-general.php?page=taxonomy-toolbox3.2536.35

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Taxonomy Toolbox
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.25 ▼0.102.13 ▲0.2040.95 ▼2.51
Dashboard /wp-admin2,193 ▲255.56 ▼0.0190.78 ▼8.3536.89 ▼5.73
Posts /wp-admin/edit.php2,104 ▲12.01 ▲0.0239.12 ▲3.9335.11 ▲1.11
Add New Post /wp-admin/post-new.php1,534 ▼023.23 ▲5.10604.49 ▼50.8768.27 ▲10.17
Media Library /wp-admin/upload.php1,404 ▲14.15 ▼0.1096.43 ▼9.4242.46 ▼3.04
Taxonomy Toolbox /wp-admin/options-general.php?page=taxonomy-toolbox1,0912.0026.0032.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
The following issues need your attention
  • 2× 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/taxonomy-toolbox/taxonomy-toolbox-admin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/taxonomy-toolbox/taxonomy-toolbox.php:30

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: Version not formatted correctly
The official readme.txt is a good inspiration

taxonomy-toolbox/taxonomy-toolbox.php Passed 13 tests

The principal PHP file in "Taxonomy Toolbox" v. 0.1.2 is loaded by WordPress automatically on each request
103 characters long description:
A light plugin that allows you to quickly review and update your Categories, Tags and other taxonomies.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin381 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP215755381

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin