72% jobpass

Code Review | JobPass

WordPress plugin JobPass scored72%from 54 tests.

About plugin

  • Plugin page: jobpass
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 22, 2022
  • Latest release: May 19, 2023
  • Number of updates: 14
  • Update frequency: every 21.5 days
  • Top authors: jobpass (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /535 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by JobPass
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0843.92 ▲4.29
Dashboard /wp-admin3.44 ▲0.1353.53 ▲9.89
Posts /wp-admin/edit.php3.53 ▲0.1758.88 ▲14.08
Add New Post /wp-admin/post-new.php6.10 ▲0.2191.79 ▲7.39
Media Library /wp-admin/upload.php3.36 ▲0.1241.53 ▲11.02
Entités /wp-admin/edit-tags.php?taxonomy=entity&post_type=joboffers3.1729.61
Ajouter une offre d'emploi /wp-admin/post-new.php?post_type=joboffers6.0888.64
Jobpass /wp-admin/admin.php?page=jobpass3.3340.88
Toutes les offres d'emploi /wp-admin/edit.php?post_type=joboffers3.3841.47

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

JobPass: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲11413.88 ▼0.502.97 ▲1.3642.58 ▲2.16
Dashboard /wp-admin2,251 ▲635.07 ▲0.20114.23 ▲4.9379.51 ▲37.91
Posts /wp-admin/edit.php2,151 ▲622.32 ▲0.2938.29 ▲3.0936.53 ▲1.51
Add New Post /wp-admin/post-new.php1,561 ▲2817.61 ▼5.48727.37 ▲135.5634.40 ▼18.43
Media Library /wp-admin/upload.php1,439 ▲514.53 ▲0.32101.85 ▼0.6671.78 ▲27.82
Entités /wp-admin/edit-tags.php?taxonomy=entity&post_type=joboffers280.440.073.81
Ajouter une offre d'emploi /wp-admin/post-new.php?post_type=joboffers1,65416.81897.4132.59
Jobpass /wp-admin/admin.php?page=jobpass1,6064.53175.5447.77
Toutes les offres d'emploi /wp-admin/edit.php?post_type=joboffers1,1092.4735.5828.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% 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)
Good news, no errors were detected

SRP 0% from 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/jobpass/inc/admin.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/jobpass/public/single-jobpass-offer.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jobpass/inc/metajoboffers-fields.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/jobpass/public/archives-joboffers.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/jobpass/inc/job_infos_form.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/edit-tags.php?taxonomy=entity&post_type=joboffers
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=entity&post_type=joboffers - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: job manager, jobs, career, hr, job offers...

jobpass/jobpass.php 92% from 13 tests

This is the main PHP file of "JobPass" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 287 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,902 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP78444866
CSS2481619
JavaScript2111322
SVG30193
Markdown1102

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected