84% wp-job-manager-locations

Code Review | Regions for WP Job Manager

WordPress plugin Regions for WP Job Manager scored84%from 54 tests.

About plugin

  • Plugin page: wp-job-manager-lo...
  • Plugin version: 1.18.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 27, 2013
  • Latest release: Aug 25, 2023
  • Number of updates: 99
  • Update frequency: every 37.2 days
  • Top authors: adampickering (87.88%)erdanish4 (7.07%)Astoundify (6.06%)euthelup (2.02%)

Code review

54 tests

User reviews

9 reviews

Install metrics

10,000+ active /363,395 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.79ms] Passed 4 tests

This is a short check of server-side resources used by Regions for WP Job Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1742.22 ▲4.60
Dashboard /wp-admin3.45 ▲0.1544.23 ▼4.67
Posts /wp-admin/edit.php3.57 ▲0.2143.74 ▲0.60
Add New Post /wp-admin/post-new.php6.08 ▲0.2081.35 ▼11.06
Media Library /wp-admin/upload.php3.37 ▲0.1437.26 ▲3.96

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Regions for WP Job Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.301.73 ▲0.1440.04 ▲2.18
Dashboard /wp-admin2,203 ▲115.86 ▲0.8096.98 ▼12.6739.58 ▼0.39
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0136.62 ▼0.8931.12 ▼2.21
Add New Post /wp-admin/post-new.php1,520 ▲623.31 ▲5.79670.27 ▼14.3053.08 ▼2.52
Media Library /wp-admin/upload.php1,385 ▼04.21 ▼0.06109.22 ▲9.6246.46 ▲3.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Astoundify_Job_Manager_Regions' not found in wp-content/plugins/wp-job-manager-locations/includes/class-template.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Astoundify_Job_Manager_Regions' not found in wp-content/plugins/wp-job-manager-locations/includes/class-taxonomy.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Jobify_Widget' not found in wp-content/plugins/wp-job-manager-locations/includes/widgets/class-widget-region-list.php:6

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: job listing, job region, job

wp-job-manager-locations/wp-job-manager-locations.php Passed 13 tests

The main PHP file in "Regions for WP Job Manager" ver. 1.18.3 adds more information about the plugin and also serves as the entry point for this plugin
87 characters long description:
Create predefined regions/locations that job submissions can associate themselves with.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin897 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6171131588
JavaScript2412162
PO File35363147

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity15.40
▷ Minimum class complexity2.00
▷ Maximum class complexity37.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods3597.22%
▷ Protected methods00.00%
▷ Private methods12.78%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin