84% categories-metabox-enhanced

Code Review | Categories Metabox Enhanced

WordPress plugin Categories Metabox Enhanced scored84%from 54 tests.

About plugin

  • Plugin page: categories-metabo...
  • Plugin version: 0.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.6.1
  • WordPress version: 6.3.1
  • First release: Sep 23, 2014
  • Latest release: Feb 12, 2021
  • Number of updates: 15
  • Update frequency: every 155.6 days
  • Top authors: 1fixdotio (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /13,746 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.61ms] Passed 4 tests

A check of server-side resources used by Categories Metabox Enhanced
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1540.23 ▲3.50
Dashboard /wp-admin3.47 ▲0.1648.35 ▲1.46
Posts /wp-admin/edit.php3.58 ▲0.2245.84 ▼2.11
Add New Post /wp-admin/post-new.php6.05 ▲0.1680.79 ▼17.50
Media Library /wp-admin/upload.php3.39 ▲0.1633.79 ▼0.29
Categories Metabox Enhanced /wp-admin/options-general.php?page=category-metabox-enhanced3.3631.67

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
cme-display-activation-message
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
category-metabox-enhanced_category
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Categories Metabox Enhanced
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▲0.081.76 ▲0.2044.90 ▲5.20
Dashboard /wp-admin2,199 ▲225.63 ▼0.0686.78 ▼1.7842.00 ▲1.57
Posts /wp-admin/edit.php2,104 ▲72.04 ▲0.0634.64 ▼2.9332.70 ▼0.32
Add New Post /wp-admin/post-new.php1,529 ▲123.60 ▲0.35674.91 ▲88.7358.15 ▲5.70
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.19102.53 ▲6.9844.69 ▼0.87
Categories Metabox Enhanced /wp-admin/options-general.php?page=category-metabox-enhanced9312.0522.7933.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/categories-metabox-enhanced/admin/views/settings.php:19

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: metabox, taxonomy, category

categories-metabox-enhanced/categories-metabox-enhanced.php 92% from 13 tests

The main PHP file in "Categories Metabox Enhanced" ver. 0.7.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin946 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP14313872871
Markdown122058
JSON1007
JavaScript1006
CSS1004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity12.67
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods62
▷ Static methods46.45%
▷ Public methods5588.71%
▷ Protected methods11.61%
▷ Private methods69.68%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin