79% jobs-portal

Code Review | Jobs Portal - Job & Career Manager

WordPress plugin Jobs Portal - Job & Career Manager scored79%from 54 tests.

About plugin

  • Plugin page: jobs-portal
  • Plugin version: 3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Feb 4, 2019
  • Latest release: Nov 6, 2023
  • Number of updates: 30
  • Update frequency: every 57.9 days
  • Top authors: weblizar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /6,201 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.25ms] Passed 4 tests

Analyzing server-side resources used by Jobs Portal - Job & Career Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.23 ▼6.94
Dashboard /wp-admin3.43 ▲0.0948.38 ▼16.34
Posts /wp-admin/edit.php3.50 ▲0.1445.68 ▼0.50
Add New Post /wp-admin/post-new.php6.02 ▲0.1492.95 ▲0.95
Media Library /wp-admin/upload.php3.36 ▲0.1335.11 ▼1.21
Add New /wp-admin/post-new.php?post_type=job3.5053.37
Go to pro /wp-admin/admin.php?page=go_to_pro3.3733.04
Departments /wp-admin/edit-tags.php?taxonomy=department&post_type=job3.3533.77
All Candidates /wp-admin/edit.php?post_type=candidate3.4137.71
Dashboard /wp-admin/admin.php?page=job_portal_dashboard3.4236.99
Job Applications /wp-admin/edit.php?post_type=candidate&page=job_applications3.4033.09
Job Locations /wp-admin/edit-tags.php?taxonomy=job_location&post_type=job3.3533.54
Industries /wp-admin/edit-tags.php?taxonomy=industry&post_type=job3.3532.63
Settings /wp-admin/admin.php?page=job_portal_settings3.3532.42
All Jobs /wp-admin/edit.php?post_type=job3.4136.11

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 84 new files
Database: 1 new table, 7 new options
New tables
wp_weblizar_candidate_job
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
weblizar_general

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jobs Portal - Job & Career Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲11314.20 ▼0.152.15 ▲0.3138.21 ▼5.35
Dashboard /wp-admin2,277 ▲965.61 ▼0.1185.68 ▼30.7340.90 ▼0.75
Posts /wp-admin/edit.php2,182 ▲821.97 ▲0.0037.91 ▲1.2333.97 ▼6.10
Add New Post /wp-admin/post-new.php1,592 ▲5622.79 ▼0.49590.45 ▼103.9052.35 ▼13.19
Media Library /wp-admin/upload.php1,482 ▲854.24 ▲0.0599.26 ▼8.5242.40 ▼4.26
Add New /wp-admin/post-new.php?post_type=job2,8238.24194.26110.83
Go to pro /wp-admin/admin.php?page=go_to_pro9841.8229.2762.26
Departments /wp-admin/edit-tags.php?taxonomy=department&post_type=job1,3552.1326.4629.28
All Candidates /wp-admin/edit.php?post_type=candidate1,1431.9230.0429.84
Dashboard /wp-admin/admin.php?page=job_portal_dashboard1,0881.8129.4247.31
Job Applications /wp-admin/edit.php?post_type=candidate&page=job_applications9491.8126.8846.02
Job Locations /wp-admin/edit-tags.php?taxonomy=job_location&post_type=job1,3242.1326.8028.18
Industries /wp-admin/edit-tags.php?taxonomy=industry&post_type=job1,3522.1226.6831.41
Settings /wp-admin/admin.php?page=job_portal_settings9932.0325.3130.25
All Jobs /wp-admin/edit.php?post_type=job1,1701.9329.2827.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_weblizar_candidate_job
  • This plugin does not fully uninstall, leaving 7 options in the database
    • weblizar_general
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

jobs-portal/jobs-portal.php 85% from 13 tests

"Jobs Portal - Job & Career Manager" version 3.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: The description should be shorter than 140 characters (currently 209 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected39,394 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1397030513,245
CSS111,6284111,660
SVG3009,546
PHP264083283,915
PO File11,7403,7691,028

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity34.75
▷ Minimum class complexity1.00
▷ Maximum class complexity165.00
Average method complexity5.82
▷ Minimum method complexity1.00
▷ Maximum method complexity90.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods84
▷ Static methods8196.43%
▷ Public methods7994.05%
▷ Protected methods00.00%
▷ Private methods55.95%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin