10% jobify

Code Review | Jobify

WordPress plugin Jobify scored10%from 54 tests.

About plugin

  • Plugin page: jobify
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Jan 25, 2016
  • Latest release: Nov 10, 2016
  • Number of updates: 36
  • Update frequency: every 8.1 days
  • Top authors: bmarshall511 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /6,589 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/jobify/src/Jobify/JobsWidget.class.php+207
    syntax error, unexpected 'endif' (T_ENDIF)

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.91ms] Passed 4 tests

Server-side resources used by Jobify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.50 ▼2.10
Dashboard /wp-admin3.31 ▲0.0043.73 ▼8.75
Posts /wp-admin/edit.php3.36 ▲0.0043.76 ▼6.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.65 ▼10.14
Media Library /wp-admin/upload.php3.23 ▲0.0036.73 ▲2.32

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Jobify
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▼0.272.01 ▲0.3839.95 ▲0.48
Dashboard /wp-admin2,195 ▲185.56 ▼0.0984.30 ▼7.0938.44 ▼1.34
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0735.38 ▼5.5732.81 ▼5.90
Add New Post /wp-admin/post-new.php1,526 ▼023.50 ▲0.30680.81 ▼15.5356.60 ▲0.66
Media Library /wp-admin/upload.php1,394 ▼34.17 ▼0.0993.94 ▼6.8745.32 ▲2.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/jobify/inc/settings.php
    • > /wp-content/plugins/jobify/src/helpers.php
    • > /wp-content/plugins/jobify/jobify.php
  • 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      require_once(JOBIFY_ROOTsrc/indeed.php): failed to open stream: No such file or directory in wp-content/plugins/jobify/src/APIs/indeed.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function jobify_settings() in wp-content/plugins/jobify/src/APIs/usajobs.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'JOBIFY_ROOTsrc/Careerjet_API.php' (include_path='.:/usr/share/php') in wp-content/plugins/jobify/src/APIs/careerjet.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function jobify_addAPI() in wp-content/plugins/jobify/src/APIs/jobify.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Jobify_Plugin' not found in wp-content/plugins/jobify/src/Jobify/Shortcodes.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Jobify_Plugin' not found in wp-content/plugins/jobify/src/Jobify/Admin.php:2
    • > PHP Warning
      require_once(JOBIFY_ROOTsrc/Careerjet_API.php): failed to open stream: No such file or directory in wp-content/plugins/jobify/src/APIs/careerjet.php on line 7
    • > PHP Parse error
      syntax error, unexpected 'endif' (T_ENDIF) in wp-content/plugins/jobify/src/Jobify/JobsWidget.class.php on line 207
    • > PHP Warning
      Use of undefined constant JOBIFY_ROOT - assumed 'JOBIFY_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/jobify/src/APIs/careerjet.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'JOBIFY_ROOTsrc/indeed.php' (include_path='.:/usr/share/php') in wp-content/plugins/jobify/src/APIs/indeed.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: widgets, usajobs, jobs, github jobs, monetize...

jobify/jobify.php Passed 13 tests

The main PHP file in "Jobify" ver. 1.4.4 adds more information about the plugin and also serves as the entry point for this plugin
104 characters long description:
Official fully-featured job board plugin that seamlessly integrates with GitHub Jobs, Indeed & more!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin4,068 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP197252,5643,422
PO File1183194511
JavaScript2211103
CSS17032

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity27.82
▷ Minimum class complexity1.00
▷ Maximum class complexity178.00
Average method complexity4.32
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods140
▷ Static methods53.57%
▷ Public methods11884.29%
▷ Protected methods2014.29%
▷ Private methods21.43%
Functions32
▷ Named functions2062.50%
▷ Anonymous functions1237.50%
Constants8
▷ Global constants225.00%
▷ Class constants675.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin