89% wp-job-manager-category-colors

Code Review | Job Colors for WP Job Manager Categories

WordPress plugin Job Colors for WP Job Manager Categories scored89%from 54 tests.

About plugin

  • Plugin page: wp-job-manager-ca...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Feb 10, 2014
  • Latest release: May 16, 2014
  • Number of updates: 7
  • Update frequency: every 13.6 days
  • Top authors: tripflex (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /5,396 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 gracefully, with no errors

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

This is a short check of server-side resources used by Job Colors for WP Job Manager Categories
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0525.48 ▼16.09
Dashboard /wp-admin3.33 ▲0.0346.36 ▼6.65
Posts /wp-admin/edit.php3.39 ▲0.0346.14 ▼1.89
Add New Post /wp-admin/post-new.php5.91 ▲0.03105.03 ▲3.91
Media Library /wp-admin/upload.php3.26 ▲0.0335.27 ▼4.23

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Job Colors for WP Job Manager Categories
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.54 ▼0.814.81 ▲3.1639.76 ▼2.28
Dashboard /wp-admin2,206 ▲185.91 ▲0.05109.14 ▲5.2141.25 ▼3.62
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0139.14 ▼1.3734.58 ▼2.68
Add New Post /wp-admin/post-new.php1,537 ▲1823.29 ▲0.18683.83 ▲69.3767.07 ▲23.00
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.01102.05 ▲2.0040.95 ▼2.04

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: job, job categories, job color, job region, job listing...

wp-job-manager-category-colors/wp-job-manager-cat-colors.php 85% from 13 tests

This is the main PHP file of "Job Colors for WP Job Manager Categories" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-job-manager-category-colors.php" instead of "wp-job-manager-cat-colors.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin118 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12823118

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
Functions2
▷ Named functions2100.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 were not PNG files found in your plugin