71% wp-job-pro

Code Review | WP job Pro

WordPress plugin WP job Pro scored71%from 54 tests.

About plugin

  • Plugin page: wp-job-pro
  • Plugin version: 2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.x-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 14, 2017
  • Latest release: Feb 20, 2023
  • Number of updates: 20
  • Update frequency: every 109.8 days
  • Top authors: infosoftplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,842 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 gracefully, with no errors

Server metrics [RAM: ▲0.35MB] [CPU: ▼2.85ms] Passed 4 tests

This is a short check of server-side resources used by WP job Pro
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3543.81 ▼2.27
Dashboard /wp-admin3.65 ▲0.3553.08 ▼4.18
Posts /wp-admin/edit.php3.76 ▲0.4155.73 ▼0.74
Add New Post /wp-admin/post-new.php6.25 ▲0.37103.14 ▼4.21
Media Library /wp-admin/upload.php3.57 ▲0.3439.58 ▲3.93
Report /wp-admin/edit.php?post_type=icjm_job&page=ic-job-report3.6040.81
Jobs /wp-admin/edit.php?post_type=icjm_job3.6240.69
Types /wp-admin/edit.php?post_type=icjm_job_type3.6139.22
Application /wp-admin/edit.php?post_type=icjm_job&page=ic-job-application3.5639.26
Categories /wp-admin/edit.php?post_type=icjm_job_category3.6140.48
Other Plug-ins /wp-admin/edit.php?post_type=icjm_job&page=icjm_add_ons_page3.5734.50
Positions /wp-admin/edit.php?post_type=icjm_job_position3.6141.36
Companies /wp-admin/edit.php?post_type=icjm_job_company3.6141.06
Status /wp-admin/edit.php?post_type=icjm_job_status3.6140.03
Locations /wp-admin/edit.php?post_type=icjm_job_location3.6140.19

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP job Pro
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,020 ▲25913.66 ▼0.456.73 ▲5.0939.34 ▼6.33
Dashboard /wp-admin2,295 ▲1185.05 ▼0.5790.36 ▼5.1395.28 ▲57.98
Posts /wp-admin/edit.php2,227 ▲1242.35 ▲0.3940.17 ▲0.5740.35 ▲4.05
Add New Post /wp-admin/post-new.php1,623 ▲9723.66 ▼0.05750.95 ▲88.4638.93 ▼11.90
Media Library /wp-admin/upload.php1,512 ▲1124.64 ▲0.41103.76 ▼2.8574.67 ▲26.12
Report /wp-admin/edit.php?post_type=icjm_job&page=ic-job-report1,5822.0831.6837.19
Jobs /wp-admin/edit.php?post_type=icjm_job1,2292.3035.2032.61
Types /wp-admin/edit.php?post_type=icjm_job_type1,1842.2935.0832.42
Application /wp-admin/edit.php?post_type=icjm_job&page=ic-job-application1,0642.0731.4629.42
Categories /wp-admin/edit.php?post_type=icjm_job_category1,1812.2836.9935.07
Other Plug-ins /wp-admin/edit.php?post_type=icjm_job&page=icjm_add_ons_page1,5162.0431.9948.02
Positions /wp-admin/edit.php?post_type=icjm_job_position1,1842.4834.3333.86
Companies /wp-admin/edit.php?post_type=icjm_job_company1,1842.4734.5731.74
Status /wp-admin/edit.php?post_type=icjm_job_status1,1812.2938.1033.47
Locations /wp-admin/edit.php?post_type=icjm_job_location1,1812.4536.7731.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=icjm_job&page=icjm_add_ons_page
    • > Notice in wp-content/plugins/wp-job-pro/include/ic_job_add_ons.php+21
    Undefined index: plugin_key
    • > GET request to /wp-admin/edit.php?post_type=icjm_job&page=icjm_add_ons_page
    • > Notice in wp-content/plugins/wp-job-pro/include/ic_job_add_ons.php+34
    Undefined index: plugin_file

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-job-pro/template/single-ic_job.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=icjm_job&page=ic-job-report
    • > Network (severe)
    assets/images/icons/sales-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png)
The official readme.txt is a good inspiration

wp-job-pro/ic-job-manager.php 69% from 13 tests

Analyzing the main PHP file in "WP job Pro" version 2.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-job-pro.php" instead of "ic-job-manager.php")
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "3.5.x")
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Text Domain: The text domain should only use lowercase characters and dashes

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 plugin35,649 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
SVG30022,625
CSS836017310,259
PHP134543682,522
JavaScript473101243

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity25.10
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods76
▷ Static methods00.00%
▷ Public methods76100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.19MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow.png0.47KB0.33KB▼ 28.72%
images/arrow-1.png1.13KB0.29KB▼ 74.12%
(invalid) screenshot-3.png27.03KB0.00KB▼ 100.00%
(invalid) screenshot-2.png30.18KB0.00KB▼ 100.00%
screenshot-4.png23.25KB12.71KB▼ 45.35%