72% go-fetch-jobs-wp-job-manager

Code Review | Go Fetch Jobs (for WP Job Manager)

WordPress plugin Go Fetch Jobs (for WP Job Manager) scored72%from 54 tests.

About plugin

  • Plugin page: go-fetch-jobs-wp-...
  • Plugin version: 1.8.2.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2
  • WordPress version: 6.3.1
  • First release: Feb 5, 2016
  • Latest release: Jul 6, 2023
  • Number of updates: 114
  • Update frequency: every 23.8 days
  • Top authors: SebeT (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

1,000+ active /42,637 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲6.10MB] [CPU: ▲35.56ms] 75% from 4 tests

Analyzing server-side resources used by Go Fetch Jobs (for WP Job Manager)
It is recommended to improve the following
  • Extra RAM: The extra memory usage must be under 5MB (currently 6.10MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.23 ▲5.7690.78 ▲46.47
Dashboard /wp-admin9.54 ▲6.1991.07 ▲28.35
Posts /wp-admin/edit.php9.59 ▲6.23106.58 ▲52.24
Add New Post /wp-admin/post-new.php12.12 ▲6.23126.60 ▲15.18
Media Library /wp-admin/upload.php9.46 ▲6.2396.48 ▲56.87
Freemius Debug [v.2.5.9] /wp-admin/admin.php?page=freemius9.6595.40

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 435 new files
Database: no new tables, 11 new options
New WordPress options
goft-wpjm-error
can_compress_scripts
fs_accounts
db_upgraded
widget_recent-comments
fs_debug_mode
goft-wpjm-activated
fs_active_plugins
widget_theysaidso_widget
widget_recent-posts
...

Browser metrics Passed 4 tests

Checking browser requirements for Go Fetch Jobs (for WP Job Manager)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9414.66 ▲0.311.46 ▼0.2930.39 ▼13.07
Dashboard /wp-admin2,261 ▲845.55 ▼0.1196.01 ▼1.8146.48 ▼0.04
Posts /wp-admin/edit.php2,170 ▲732.22 ▲0.2041.75 ▲4.0941.36 ▲6.92
Add New Post /wp-admin/post-new.php1,587 ▲5822.74 ▼0.55685.49 ▲8.0851.30 ▼16.67
Media Library /wp-admin/upload.php1,460 ▲604.26 ▲0.08100.14 ▼4.8449.64 ▲4.35
Freemius Debug [v.2.5.9] /wp-admin/admin.php?page=freemius1,1372.0835.2229.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/go-fetch-jobs-wp-job-manager/includes/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 11 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • goft-wpjm-activated
    • db_upgraded
    • fs_active_plugins
    • goft-wpjm-error
    • widget_recent-posts
    • fs_debug_mode
    • fs_accounts
    • widget_recent-comments
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'BC_Framework_Tabs_Page' not found in wp-content/plugins/go-fetch-jobs-wp-job-manager/includes/admin/class-gofetch-admin-settings.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/go-fetch-jobs-wp-job-manager/includes/framework/includes/wp-scb-framework/BoxesPage.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/go-fetch-jobs-wp-job-manager/includes/settings.php:43
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/go-fetch-jobs-wp-job-manager/includes/framework/includes/wp-scb-framework/Widget.php:5

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
Please take inspiration from this readme.txt

go-fetch-jobs-wp-job-manager/gofetch-jobs-wpjm.php 92% from 13 tests

The main PHP file in "Go Fetch Jobs (for WP Job Manager)" ver. 1.8.2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("go-fetch-jobs-wp-job-manager.php" instead of "gofetch-jobs-wpjm.php")

Code Analysis 97% from 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 detected71,536 lines of code in 318 files:
LanguageFilesBlank linesComment linesLines of code
PHP17211,20721,17644,849
JavaScript654,2082,36420,177
Sass38538923,188
PO File16969872,019
CSS2317169968
SVG14143224
JSON30073
Bourne Shell217838

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
Please fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity53.32
▷ Minimum class complexity1.00
▷ Maximum class complexity3,079.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes111
▷ Abstract classes119.91%
▷ Concrete classes10090.09%
▷ Final classes22.00%
Methods1,905
▷ Static methods40721.36%
▷ Public methods1,37472.13%
▷ Protected methods1246.51%
▷ Private methods40721.36%
Functions119
▷ Named functions11394.96%
▷ Anonymous functions65.04%
Constants151
▷ Global constants10368.21%
▷ Class constants4831.79%
▷ Public constants48100.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
51 PNG files occupy 1.03MB with 0.66MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/logos/logo-problogger.png3.69KB3.89KB0.00%
includes/images/logos/logo-recruitee.png31.72KB3.83KB▼ 87.92%
includes/images/logos/logo-jobsinkenya.png12.72KB3.51KB▼ 72.43%
(invalid) includes/images/logos/logo-jobmonkey.png17.00KB0.00KB▼ 100.00%
includes/images/logos/logo-healthcareercenter.png26.11KB10.11KB▼ 61.29%