83% job-manager-by-jobscore

Code Review | Job Manager by JobScore

WordPress plugin Job Manager by JobScore scored83%from 54 tests.

About plugin

  • Plugin page: job-manager-by-jo...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 25, 2013
  • Latest release: Dec 5, 2022
  • Number of updates: 62
  • Update frequency: every 54.2 days
  • Top authors: jobscore (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /10,499 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.57ms] Passed 4 tests

A check of server-side resources used by Job Manager by JobScore
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.50 ▼12.05
Dashboard /wp-admin3.34 ▲0.0349.30 ▲1.37
Posts /wp-admin/edit.php3.39 ▲0.0351.53 ▲3.87
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.29 ▼6.16
Media Library /wp-admin/upload.php3.26 ▲0.0335.81 ▲2.56
JobScore Manager /wp-admin/options-general.php?page=wpjs-config3.3741.55

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

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

Browser metrics Passed 4 tests

Job Manager by JobScore: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.28 ▼1.091.72 ▼0.0743.61 ▲0.05
Dashboard /wp-admin2,210 ▲224.85 ▼1.04106.69 ▼2.6338.42 ▼4.63
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0135.99 ▼2.4734.26 ▼2.72
Add New Post /wp-admin/post-new.php1,523 ▼1023.10 ▼0.12669.86 ▲1.1455.58 ▲3.41
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0498.70 ▼11.9744.13 ▼0.05
JobScore Manager /wp-admin/options-general.php?page=wpjs-config2,3192.1440.4729.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/job-manager-by-jobscore/views/widget-src.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/job-manager-by-jobscore/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/job-manager-by-jobscore/wp-jobscore.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/job-manager-by-jobscore/views/config.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt might help

job-manager-by-jobscore/wp-jobscore.php 85% from 13 tests

The entry point to "Job Manager by JobScore" version 2.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 143 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("job-manager-by-jobscore.php" instead of "wp-jobscore.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,218 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP41009569
JavaScript310057514
CSS1191135

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code1.20
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/apple-touch-icon.png5.40KB2.82KB▼ 47.67%