10% jobpress

Code Review | JobPress - Your Own Job Board & Career Page

WordPress plugin JobPress - Your Own Job Board & Career Page scored10%from 54 tests.

About plugin

  • Plugin page: jobpress
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2022
  • Latest release: Sep 15, 2023
  • Number of updates: 13
  • Update frequency: every 46.4 days
  • Top authors: aminurislam01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,483 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
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.36MB] [CPU: ▼0.32ms] Passed 4 tests

This is a short check of server-side resources used by JobPress - Your Own Job Board & Career Page
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3741.48 ▲3.76
Dashboard /wp-admin3.67 ▲0.3744.76 ▼5.45
Posts /wp-admin/edit.php3.73 ▲0.3746.98 ▼0.85
Add New Post /wp-admin/post-new.php6.33 ▲0.4493.31 ▲6.35
Media Library /wp-admin/upload.php3.53 ▲0.3137.28 ▲1.24
All Jobs /wp-admin/edit.php?post_type=jobpress3.6451.96
Appearance /wp-admin/edit.php?post_type=jobpress&page=jobpress_appearance_settings3.5135.42
Settings /wp-admin/edit.php?post_type=jobpress&page=jobpress_settings3.5140.66
Shortcodes /wp-admin/edit.php?post_type=jobpress&page=jobpress_shortcode3.5133.02
Add New /wp-admin/post-new.php?post_type=jobpress6.3484.54
Job Categories /wp-admin/edit-tags.php?taxonomy=jobpress_category&post_type=jobpress3.5334.90
Job Types /wp-admin/edit-tags.php?taxonomy=jobpress_type&post_type=jobpress3.5335.11

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for JobPress - Your Own Job Board & Career Page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲11913.20 ▼1.091.67 ▼0.2837.88 ▼13.02
Dashboard /wp-admin2,253 ▲654.88 ▼1.02109.23 ▲1.8943.87 ▲3.54
Posts /wp-admin/edit.php2,136 ▲472.02 ▼0.1540.30 ▲0.2535.04 ▼2.48
Add New Post /wp-admin/post-new.php1,567 ▲4618.38 ▼5.11603.25 ▼76.8455.51 ▲5.32
Media Library /wp-admin/upload.php1,435 ▲474.30 ▲0.0995.94 ▼3.2542.50 ▲1.25
All Jobs /wp-admin/edit.php?post_type=jobpress1,1502.2335.3434.08
Appearance /wp-admin/edit.php?post_type=jobpress&page=jobpress_appearance_settings1,5493.0369.2129.78
Settings /wp-admin/edit.php?post_type=jobpress&page=jobpress_settings9661.9632.2035.45
Shortcodes /wp-admin/edit.php?post_type=jobpress&page=jobpress_shortcode8771.9525.0627.73
Add New /wp-admin/post-new.php?post_type=jobpress1,73517.15860.5540.24
Job Categories /wp-admin/edit-tags.php?taxonomy=jobpress_category&post_type=jobpress1,3092.1425.5326.63
Job Types /wp-admin/edit-tags.php?taxonomy=jobpress_type&post_type=jobpress1,3062.1425.8127.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_jobpress_application
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/jobpress/jobpress.php
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/jobpress/templates/task-pages/nav.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/jobpress/templates/jobpress-template/listing/jobpress-listing-v5.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_post_thumbnail_url() in wp-content/plugins/jobpress/templates/jobpress-template/single-jobpress.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/jobpress/templates/jobpress-template/listing/jobpress-listing-v1.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jobpress/templates/task-pages/appearance-settings.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jobpress/templates/task-pages/shortcodes-settings.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/jobpress/templates/jobpress-template/listing/jobpress-listing-v4.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/jobpress/templates/jobpress-template/listing/jobpress-listing-v3.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/jobpress/templates/jobpress-template/listing/jobpress-listing-v2.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jobpress/templates/task-pages/settings.php:1

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt is a good inspiration

jobpress/jobpress.php 92% from 13 tests

The primary PHP file in "JobPress - Your Own Job Board & Career Page" version 1.1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)

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
Everything looks great! No dangerous files found in this plugin5,018 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
CSS63652143,029
PHP383165811,945
JSON20022
JavaScript10318
SVG1004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.70
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes15.00%
Methods98
▷ Static methods2626.53%
▷ Public methods9495.92%
▷ Protected methods00.00%
▷ Private methods44.08%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin