90% wp-job-manager-colors

Code Review | Job Colors for WP Job Manager

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

About plugin

  • Plugin page: wp-job-manager-co...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 27, 2013
  • Latest release: Jul 20, 2022
  • Number of updates: 29
  • Update frequency: every 113.1 days
  • Top authors: adampickering (86.21%)Astoundify (13.79%)erdanish4 (6.9%)

Code review

54 tests

User reviews

4 reviews

Install metrics

5,000+ active /109,529 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Job Colors for WP Job Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0726.84 ▼14.27
Dashboard /wp-admin3.31 ▲0.0159.98 ▲7.25
Posts /wp-admin/edit.php3.36 ▲0.0145.44 ▼5.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.33 ▼7.35
Media Library /wp-admin/upload.php3.23 ▲0.0137.11 ▲1.62

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Job Colors for WP Job Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.62 ▼0.761.88 ▲0.0743.42 ▼1.53
Dashboard /wp-admin2,209 ▲215.88 ▲0.97102.89 ▼14.2940.05 ▼7.25
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0240.08 ▼2.9935.76 ▲0.98
Add New Post /wp-admin/post-new.php1,536 ▲323.26 ▲0.21585.06 ▼70.0456.88 ▼0.47
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.04101.65 ▲2.2742.33 ▲0.68

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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
3 plugin tags: job listing, job, job region

wp-job-manager-colors/wp-job-manager-colors.php 92% from 13 tests

"Job Colors for WP Job Manager" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin100 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12510100

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity6.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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