10% simple-job-board

Code Review | Simple Job Board

WordPress plugin Simple Job Board scored10%from 54 tests.

About plugin

  • Plugin page: simple-job-board
  • Plugin version: 2.10.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4
  • WordPress version: 6.3.1
  • First release: Jun 18, 2015
  • Latest release: Nov 29, 2023
  • Number of updates: 162
  • Update frequency: every 19.1 days
  • Top authors: PressTigers (100%)

Code review

54 tests

User reviews

125 reviews

Install metrics

20,000+ active /440,719 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/simple-job-board/admin/addons/class-simple-job-board-addon-extensions.php+101
    Trying to get property 'data' of non-object

Server metrics [RAM: ▲1.51MB] [CPU: ▲16.73ms] Passed 4 tests

Analyzing server-side resources used by Simple Job Board
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.95 ▲1.4958.35 ▲18.17
Dashboard /wp-admin4.81 ▲1.5063.11 ▲12.62
Posts /wp-admin/edit.php4.91 ▲1.5562.41 ▲15.87
Add New Post /wp-admin/post-new.php7.61 ▲1.72106.17 ▲23.07
Media Library /wp-admin/upload.php4.72 ▲1.4952.21 ▲20.24
Job Categories /wp-admin/edit-tags.php?taxonomy=jobpost_category&post_type=jobpost4.8451.33
Wizard /wp-admin/edit.php?post_type=jobpost&page=job-board-wizard4.7446.85
Add New /wp-admin/post-new.php?post_type=jobpost7.61103.88
Job Locations /wp-admin/edit-tags.php?taxonomy=jobpost_location&post_type=jobpost4.8451.10
All Jobs /wp-admin/edit.php?post_type=jobpost4.7749.19
Settings /wp-admin/edit.php?post_type=jobpost&page=job-board-settings4.8059.81
Applications /wp-admin/edit.php?post_type=jobpost_applicants4.7756.24
Job Types /wp-admin/edit-tags.php?taxonomy=jobpost_job_type&post_type=jobpost4.8448.08
Add-ons /wp-admin/edit.php?post_type=jobpost&page=sjb-add-ons4.72272.91

Server storage [IO: ▲7.29MB] [DB: ▲0.01MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • You have illegally modified 1 file (0.77KB) outside of "wp-content/plugins/simple-job-board/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 295 new files
Database: no new tables, 28 new options
New WordPress options
sjb_version
job_board_listing
theysaidso_admin_options
job_board_location_filter
job_board_jobpost_slug
job_board_job_location_slug
sjb_fonts
widget_recent-comments
job_board_jobtype_filter
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for Simple Job Board
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,009 ▲24713.90 ▼0.831.80 ▲0.0276.75 ▲31.20
Dashboard /wp-admin2,388 ▲2245.17 ▼0.46105.68 ▲5.1445.42 ▲1.70
Posts /wp-admin/edit.php2,175 ▲722.38 ▲0.4046.79 ▲11.6733.85 ▼4.38
Add New Post /wp-admin/post-new.php6,271 ▲4,74519.37 ▼3.71802.59 ▲223.1138.95 ▼22.99
Media Library /wp-admin/upload.php1,492 ▲984.78 ▲0.64101.50 ▲3.3141.47 ▼0.43
Job Categories /wp-admin/edit-tags.php?taxonomy=jobpost_category&post_type=jobpost1,3862.4535.1133.62
Wizard /wp-admin/edit.php?post_type=jobpost&page=job-board-wizard1,3192.3436.9569.43
Add New /wp-admin/post-new.php?post_type=jobpost1,92917.24862.8742.98
Job Locations /wp-admin/edit-tags.php?taxonomy=jobpost_location&post_type=jobpost1,3962.4536.2330.00
All Jobs /wp-admin/edit.php?post_type=jobpost1,3062.5939.1729.52
Settings /wp-admin/edit.php?post_type=jobpost&page=job-board-settings4,26910.56256.87123.96
Applications /wp-admin/edit.php?post_type=jobpost_applicants1,2552.4342.1036.64
Job Types /wp-admin/edit-tags.php?taxonomy=jobpost_job_type&post_type=jobpost1,3862.4831.2332.78
Add-ons /wp-admin/edit.php?post_type=jobpost&page=sjb-add-ons8912.3632.4934.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 28 options in the database
    • sjb_fonts
    • job_board_job_type_slug
    • widget_recent-posts
    • job_board_listing
    • job_board_category_filter
    • job_board_applicant_notification
    • job_board_hr_notification
    • widget_theysaidso_widget
    • job_board_listing_view
    • job_board_location_filter
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 6× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/simple-job-board/templates/v2/widget/job-widget-start.php
    • > /wp-content/plugins/simple-job-board/uninstall.php
    • > /wp-content/plugins/simple-job-board/templates/v1/widget/job-widget-start.php
    • > /wp-content/plugins/simple-job-board/public/partials/simple-job-board-public-display.php
    • > /wp-content/plugins/simple-job-board/templates/v2/widget/job-widget-end.php
    • > /wp-content/plugins/simple-job-board/templates/v1/widget/job-widget-end.php
  • 111× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/simple-job-board/templates/v2/search/search-btn.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sjb_is_category_filter() in wp-content/plugins/simple-job-board/templates/v2/search/category-filter.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sjb_get_the_company_name() in wp-content/plugins/simple-job-board/templates/v2/listing/list-view/company.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sjb_is_keyword_search() in wp-content/plugins/simple-job-board/templates/v2/search/keyword-search.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sjb_get_the_job_location() in wp-content/plugins/simple-job-board/templates/v2/listing/list-view/location.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sjb_get_the_company_name() in wp-content/plugins/simple-job-board/templates/v1/single-jobpost/job-meta/company-name.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-job-board/templates/v2/single-jobpost/single-job-wrapper-start.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/simple-job-board/templates/v1/single-jobpost/job-features.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/simple-job-board/templates/v2/listing/job-listings-end.php:29
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/simple-job-board/templates/v2/listing/list-view/long-description.php on line 18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: career, job board, jobs, job manager, job portal...

simple-job-board/simple-job-board.php Passed 13 tests

"Simple Job Board" version 2.10.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
87 characters long description:
Powerful & Robust plugin to create a Job Board on your website in simple & elegant way.

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
Good job! No executable or dangerous file extensions detected59,542 lines of code in 206 files:
LanguageFilesBlank linesComment linesLines of code
CSS111,68023018,288
SVG40012,223
PHP1622,3947,1689,371
JSON3007,297
PO File103,1705,0746,747
Sass3113,474
JavaScript132885482,142

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.12
▷ Minimum class complexity1.00
▷ Maximum class complexity71.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes43
▷ Abstract classes00.00%
▷ Concrete classes43100.00%
▷ Final classes00.00%
Methods189
▷ Static methods2312.17%
▷ Public methods17391.53%
▷ Protected methods00.00%
▷ Private methods168.47%
Functions60
▷ Named functions60100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
37 PNG files occupy 0.71MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
sjb-block/images/flags@2x.png161.67KB64.26KB▼ 60.25%
sjb-block/images/flags.png64.58KB23.60KB▼ 63.46%
public/images/bolits.png0.99KB0.14KB▼ 86.12%
sjb-block/images/ui-icons_444444_256x240.png3.19KB3.49KB0.00%
admin/images/txt.png2.29KB0.56KB▼ 75.60%