89% taxonomy-metabox

Code Review | Taxonomy Metabox

WordPress plugin Taxonomy Metabox scored89%from 54 tests.

About plugin

  • Plugin page: taxonomy-metabox
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7
  • WordPress version: 6.3.1
  • First release: Jun 3, 2015
  • Latest release: Dec 10, 2016
  • Number of updates: 4
  • Update frequency: every 139.0 days
  • Top authors: Desertsnowman (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,790 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.02MB] [CPU: ▼2.34ms] Passed 4 tests

This is a short check of server-side resources used by Taxonomy Metabox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.46 ▼5.36
Dashboard /wp-admin3.32 ▲0.0244.21 ▼2.20
Posts /wp-admin/edit.php3.37 ▲0.0249.17 ▼0.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.23 ▼0.81
Media Library /wp-admin/upload.php3.25 ▲0.0239.36 ▲3.82

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Taxonomy Metabox
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼1.021.70 ▼0.3242.23 ▼1.05
Dashboard /wp-admin2,206 ▲184.84 ▼1.06108.50 ▲6.6942.91 ▼2.75
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0241.66 ▼0.2634.39 ▼3.93
Add New Post /wp-admin/post-new.php6,288 ▲4,75419.11 ▼4.16894.55 ▲197.0965.26 ▲1.75
Media Library /wp-admin/upload.php1,388 ▲34.27 ▲0.0999.89 ▼12.6445.94 ▲0.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (**Unified Metabox** - Much easier way to manage taxonomies in a single metabox)
You can take inspiration from this readme.txt

taxonomy-metabox/plugincore.php 92% from 13 tests

"Taxonomy Metabox" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("taxonomy-metabox.php" instead of "plugincore.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected258 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS194119
PHP257100108
JavaScript112116
PO File10015

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png56.97KB13.66KB▼ 76.02%