10% wp-job-portal-by-jane

Code Review | WP Job Portal by Jane

WordPress plugin WP Job Portal by Jane scored 10% from 54 tests.

About plugin

  • Plugin page: wp-job-portal-by-...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.1
  • WordPress version: 5.8.1
  • First release: Feb 7, 2017
  • Latest release: Apr 9, 2017
  • Number of updates: 10
  • Update frequency: every 8.5 days
  • Top authors: everetreiss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,185 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php+1116
    Use of undefined constant jhwpjp_activate - assumed 'jhwpjp_activate' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.55MB] [CPU: ▼192.65ms] Passed 4 tests

This is a short check of server-side resources used by WP Job Portal by Jane
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼0.646.60 ▼18.07
Dashboard /wp-admin2.11 ▼0.958.69 ▼43.62
Posts /wp-admin/edit.php2.11 ▼1.016.68 ▼38.33
Add New Post /wp-admin/post-new.php2.11 ▼3.335.70 ▼658.48
Media Library /wp-admin/upload.php2.11 ▼0.906.69 ▼30.18
WP Job Portal by Jane /wp-admin/options-general.php?page=janehires-plugin2.116.61

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 2 new options
New WordPress options
widget_janehireswidget
jhwpjp_plugin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP Job Portal by Jane
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,817 ▲22115.89 ▲0.2215.16 ▲4.9949.68 ▼2.28
Dashboard /wp-admin2,975 ▲385.90 ▼0.08157.55 ▼10.99116.38 ▼8.26
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.1271.07 ▼0.1596.56 ▲8.14
Add New Post /wp-admin/post-new.php1,686 ▲10518.67 ▼1.68386.01 ▼15.12112.75 ▼5.51
Media Library /wp-admin/upload.php1,812 ▲55.03 ▲0.02154.76 ▼9.08125.65 ▲2.09
WP Job Portal by Jane /wp-admin/options-general.php?page=janehires-plugin1,4272.3258.67101.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php+1116
    Use of undefined constant jhwpjp_activate - assumed 'jhwpjp_activate' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 2 options in the database
    • jhwpjp_plugin_options
    • widget_janehireswidget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=janehires-plugin
    • > Warning in wp-content/plugins/wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php+1116
    Use of undefined constant jhwpjp_activate - assumed 'jhwpjp_activate' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=janehires-plugin
    • > Notice in wp-content/plugins/wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php+101
    Undefined index: reset_plugin_api_key
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=janehires-plugin
    • > Notice in wp-content/plugins/wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php+120
    Undefined index: action
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=janehires-plugin
    • > Warning in wp-content/plugins/wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php+50
    Use of undefined constant nil - assumed 'nil' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=janehires-plugin
    • > Notice in wp-content/plugins/wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php+56
    Undefined index: plugin_api_key
    • > GET request to /wp-admin/options-general.php?page=janehires-plugin
    • > Notice in wp-content/plugins/wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php+180
    Undefined index: firstname
    • > GET request to /wp-admin/options-general.php?page=janehires-plugin
    • > Notice in wp-content/plugins/wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php+180
    Undefined index: lastname
    • > GET request to /wp-admin/options-general.php?page=janehires-plugin
    • > Notice in wp-content/plugins/wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php+180
    Undefined index: company_name
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=janehires-plugin
    • > Notice in wp-content/plugins/wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php+186
    Undefined index: default_location_zip
    • > GET request to /wp-admin/options-general.php?page=janehires-plugin
    • > Notice in wp-content/plugins/wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php+189
    Undefined index: default_location_city

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 take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-job-portal-by-jane/jhwpjp_plugin_List_Table.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-job-portal-by-jane/jhwpjp_plugin_List_Table.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php:13
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-job-portal-by-jane/jhwpjp_plugin_List_Table.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: job manager, human resources, career page, job portal, job lists...

wp-job-portal-by-jane/WP-Job-Portal-by-Jane.php 85% from 13 tests

The main PHP script in "WP Job Portal by Jane" version 2.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-job-portal-by-jane.php" instead of "WP-Job-Portal-by-Jane.php")
  • Description: The description should be shorter than 140 characters (currently 228 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,430 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3353681,205
CSS2340161
JavaScript2211164

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity18.00
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1995.00%
▷ Protected methods15.00%
▷ Private methods00.00%
Functions49
▷ Named functions49100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/purplesquiggly.png2.10KB1.77KB▼ 15.75%
assets/icon-128x128.png22.99KB2.45KB▼ 89.33%
assets/icon-256x256.png34.39KB4.58KB▼ 86.67%