84% jobboardwp

Code Review | JobBoardWP - Job Board Listings and Submissions

WordPress plugin JobBoardWP - Job Board Listings and Submissions scored84%from 54 tests.

About plugin

  • Plugin page: jobboardwp
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2
  • WordPress version: 6.3.1
  • First release: Jul 22, 2020
  • Latest release: May 24, 2023
  • Number of updates: 34
  • Update frequency: every 30.5 days
  • Top authors: nsinelnikov (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /26,181 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲1.95MB] [CPU: ▲14.87ms] Passed 4 tests

A check of server-side resources used by JobBoardWP - Job Board Listings and Submissions
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.22 ▲1.7652.65 ▲13.67
Dashboard /wp-admin5.31 ▲2.0071.96 ▲25.80
Posts /wp-admin/edit.php5.37 ▲2.0161.04 ▲14.15
Add New Post /wp-admin/post-new.php9.17 ▲3.28104.25 ▲13.44
Media Library /wp-admin/upload.php5.26 ▲2.0251.56 ▲18.23
Jobs /wp-admin/edit.php?post_type=jb-job5.3553.93
Add New /wp-admin/post-new.php?post_type=jb-job9.37108.11
Job Categories /wp-admin/edit-tags.php?taxonomy=jb-job-category&post_type=jb-job5.2648.43
Job Types /wp-admin/edit-tags.php?taxonomy=jb-job-type&post_type=jb-job5.6354.32
Dashboard /wp-admin/admin.php?page=jobboardwp5.0336.93
Settings /wp-admin/admin.php?page=jb-settings5.6249.35

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 329 new files
Database: no new tables, 71 new options
New WordPress options
jb_published-job-editing
jb_job_approved_on
jb_job_submitted_on
jb_job-type-slug
widget_jb_recent_jobs
jb_account-username-generate
jb_job-category-slug
widget_recent-posts
jb_job_expiration_reminder_sub
jb_last_version_upgrade
...

Browser metrics Passed 4 tests

An overview of browser requirements for JobBoardWP - Job Board Listings and Submissions
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,154 ▲39319.06 ▲4.71127.44 ▲125.8572.71 ▲26.47
Dashboard /wp-admin2,262 ▲855.59 ▼0.0289.39 ▲0.6645.46 ▲5.42
Posts /wp-admin/edit.php2,174 ▲742.36 ▲0.3332.39 ▼4.2734.90 ▼2.16
Add New Post /wp-admin/post-new.php1,641 ▲11223.52 ▲0.41683.14 ▲14.6839.32 ▼11.17
Media Library /wp-admin/upload.php1,467 ▲704.23 ▲0.03106.12 ▲3.5346.28 ▲2.58
Jobs /wp-admin/edit.php?post_type=jb-job1,3732.5240.7948.01
Add New /wp-admin/post-new.php?post_type=jb-job1,93617.33870.7044.08
Job Categories /wp-admin/edit-tags.php?taxonomy=jb-job-category&post_type=jb-job1,4002.4934.5631.87
Job Types /wp-admin/edit-tags.php?taxonomy=jb-job-type&post_type=jb-job2,0542.8951.8435.24
Dashboard /wp-admin/admin.php?page=jobboardwp280.420.063.50
Settings /wp-admin/admin.php?page=jb-settings1,2612.7949.7330.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 71 options in the database
    • jb_job-salary-currency
    • jb_jobs-list-hide-location-search
    • jb_job_submitted_sub
    • jb_jobs-list-hide-job-types
    • jb_jobs-list-pagination
    • jb_account-password-email
    • jb_jobs-list-hide-filled
    • jb_job-dateformat
    • jb_jobs-list-hide-filters
    • jb_first_activation_date
    • ...

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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=jobboardwp
    • > Network (severe)
    wp-admin/admin.php?page=jobboardwp - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: job portal, job manager, job, job board, job listing

jobboardwp/jobboardwp.php Passed 13 tests

The entry point to "JobBoardWP - Job Board Listings and Submissions" version 1.2.6 is a PHP file that has certain tags in its header comment area
129 characters long description:
Add a modern job board to your website. Display job listings and allow employers to submit and manage jobs all from the front-end

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected44,830 lines of code in 301 files:
LanguageFilesBlank linesComment linesLines of code
PHP893,6936,30715,688
SVG30129,299
CSS502,310919,047
Sass47671546,724
JavaScript1045752042,902
PO File14665351,015
JSON600150
HTML1265

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
These items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 229)
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity45.13
▷ Minimum class complexity2.00
▷ Maximum class complexity304.00
Average method complexity5.04
▷ Minimum method complexity1.00
▷ Maximum method complexity229.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes45
▷ Abstract classes00.00%
▷ Concrete classes45100.00%
▷ Final classes12.22%
Methods490
▷ Static methods30.61%
▷ Public methods47496.73%
▷ Protected methods51.02%
▷ Private methods112.24%
Functions63
▷ Named functions4469.84%
▷ Anonymous functions1930.16%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/common/libs/jquery-ui/images/ui-icons_222222_256x240.png6.86KB4.18KB▼ 39.05%
assets/common/libs/jquery-ui/images/ui-icons_454545_256x240.png6.92KB4.18KB▼ 39.61%
assets/common/libs/jquery-ui/images/ui-icons_888888_256x240.png6.94KB4.18KB▼ 39.78%
assets/common/libs/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png0.38KB0.15KB▼ 61.54%
assets/common/libs/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.32KB0.18KB▼ 44.00%