68% ninja-job-board

Code Review | Ninja Job Board - Ultimate WordPress Job Board Plugin

WordPress plugin Ninja Job Board - Ultimate WordPress Job Board Plugin scored68%from 54 tests.

About plugin

  • Plugin page: ninja-job-board
  • Plugin version: 1.3.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0
  • WordPress version: 6.3.1
  • First release: Jul 22, 2019
  • Latest release: Jul 20, 2022
  • Number of updates: 9
  • Update frequency: every 123.2 days
  • Top authors: techjewel (77.78%)wpmanageninja (33.33%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /5,590 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.90MB] [CPU: ▼2.84ms] Passed 4 tests

Server-side resources used by Ninja Job Board - Ultimate WordPress Job Board Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6341.08 ▼6.86
Dashboard /wp-admin4.58 ▲1.2754.84 ▲0.37
Posts /wp-admin/edit.php4.32 ▲0.9755.49 ▲8.44
Add New Post /wp-admin/post-new.php6.92 ▲1.0390.26 ▼10.01
Media Library /wp-admin/upload.php4.19 ▲0.9642.09 ▲5.14
Job Categories /wp-admin/edit-tags.php?taxonomy=wpjb-job-categories&post_type=wp_job_board4.1938.12

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 133 new files
Database: 4 new tables, 7 new options
New tables
wp_wjb_email_campaigns
wp_wjb_applications
wp_wjb_campaign_emails
wp_wjb_application_activities
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
wpjobboard_confirmation_page_id
theysaidso_admin_options

Browser metrics Passed 4 tests

Ninja Job Board - Ultimate WordPress Job Board Plugin: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲14213.25 ▼1.501.74 ▼0.6842.45 ▼3.86
Dashboard /wp-admin2,294 ▲1094.88 ▼0.18109.60 ▼7.4238.96 ▼4.28
Posts /wp-admin/edit.php2,147 ▲582.01 ▲0.0442.57 ▼11.9838.55 ▼5.00
Add New Post /wp-admin/post-new.php1,540 ▼217.88 ▼0.19596.67 ▼50.4643.93 ▼5.34
Media Library /wp-admin/upload.php1,446 ▲584.27 ▲0.0798.76 ▼5.0244.09 ▼2.24
Applications /wp-admin/admin.php?page=wpjobboard.php#/entries1,72210.60191.7565.17
All Jobs /wp-admin/admin.php?page=wpjobboard.php#/1,3557.78145.4435.85
Settings /wp-admin/admin.php?page=wpjobboard.php#/settings/general-settings1,3877.8997.4239.39
Job Categories /wp-admin/edit-tags.php?taxonomy=wpjb-job-categories&post_type=wp_job_board1,3352.1532.36105.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_wjb_campaign_emails
    • wp_wjb_application_activities
    • wp_wjb_applications
    • wp_wjb_email_campaigns
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • wpjobboard_confirmation_page_id
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ninja-job-board/includes/views/receipt/custom_css.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: jobs in wp-content/plugins/ninja-job-board/includes/views/templates/job_list.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'WPJobBoard\\Classes\\FormComponents\\ApplicantNameComponent' not found in wp-content/plugins/ninja-job-board/includes/Classes/FormComponents/init.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WpFluent\\QueryBuilder\\QueryBuilderHandler' not found in wp-content/plugins/ninja-job-board/includes/libs/wp-fluent/src/QueryBuilder/Transaction.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WpFluent\\QueryBuilder\\QueryBuilderHandler' not found in wp-content/plugins/ninja-job-board/includes/libs/wp-fluent/src/QueryBuilder/NestedCriteria.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WpFluent\\QueryBuilder\\Adapters\\BaseAdapter' not found in wp-content/plugins/ninja-job-board/includes/libs/wp-fluent/src/QueryBuilder/Adapters/Mysql.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ninja-job-board/includes/views/templates/job_list.php:2
    • > PHP Notice
      Undefined variable: items in wp-content/plugins/ninja-job-board/includes/views/elements/input_fields_html.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'WpFluent\\QueryBuilder\\QueryBuilderHandler' not found in wp-content/plugins/ninja-job-board/includes/libs/wp-fluent/src/QueryBuilder/JoinBuilder.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #8 (Current Active Jobs Shortcode [wp_job_list]) image missing
Please take inspiration from this readme.txt

ninja-job-board/wp-job-board.php 92% from 13 tests

The main PHP script in "Ninja Job Board - Ultimate WordPress Job Board Plugin" version 1.3.3 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ninja-job-board.php" instead of "wp-job-board.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected34,175 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript172,97281822,551
PHP801,7542,40510,720
CSS7137737
SVG403149
JSON20018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity16.58
▷ Minimum class complexity1.00
▷ Maximum class complexity255.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces16
Interfaces0
Traits0
Classes66
▷ Abstract classes23.03%
▷ Concrete classes6496.97%
▷ Final classes00.00%
Methods585
▷ Static methods6010.26%
▷ Public methods41070.09%
▷ Protected methods10117.26%
▷ Private methods7412.65%
Functions30
▷ Named functions516.67%
▷ Anonymous functions2583.33%
Constants104
▷ Global constants76.73%
▷ Class constants9793.27%
▷ Public constants97100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/form_instruction.png22.73KB10.25KB▼ 54.89%
assets/images/document.png4.58KB3.56KB▼ 22.23%
assets/images/pdf_icon.png1.87KB1.61KB▼ 13.97%
assets/images/default_value_screen.png22.31KB22.85KB0.00%
assets/js/tinymce_icon.png1.18KB1.35KB0.00%