90% wp-custom-category-meta

Code Review | WP Custom Category Meta

WordPress plugin WP Custom Category Meta scored 90% from 54 tests.

About plugin

  • Plugin page: wp-custom-categor...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9
  • WordPress version: 6.3.1
  • First release: Nov 1, 2013
  • Latest release: Apr 18, 2014
  • Number of updates: 7
  • Update frequency: every 24.0 days
  • Top authors: Musilek (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 4,119 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.71ms] Passed 4 tests

An overview of server-side resources used by WP Custom Category Meta
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.20 ▼16.66
Dashboard /wp-admin3.32 ▲0.0242.37 ▼5.12
Posts /wp-admin/edit.php3.37 ▲0.0149.49 ▲3.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.02 ▲8.73
Media Library /wp-admin/upload.php3.24 ▲0.0134.28 ▼0.66

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Custom Category Meta
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.81 ▲0.431.52 ▼0.5537.64 ▼8.49
Dashboard /wp-admin2,203 ▲184.81 ▼1.05106.49 ▼3.4238.97 ▼7.12
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0240.33 ▲7.7534.42 ▼1.20
Add New Post /wp-admin/post-new.php1,533 ▲1423.40 ▲0.39659.65 ▼45.3865.41 ▲5.13
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0393.95 ▼13.0143.83 ▼3.57

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_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: title, category title, description, keywords, category

wp-custom-category-meta/wp-custom-category-meta.php 92% from 13 tests

The primary PHP file in "WP Custom Category Meta" version 1.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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
There were no executable files found in this plugin220 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP278167187
PO File17733

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.31
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods642.86%
▷ Public methods1071.43%
▷ Protected methods00.00%
▷ Private methods428.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
2 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png23.47KB9.08KB▼ 61.32%
assets/banner-772x250.png63.87KB24.78KB▼ 61.20%