10% stormtribe-job-seeker

Code Review | Stormtribe Job Seeker

WordPress plugin Stormtribe Job Seeker scored 10% from 54 tests.

About plugin

  • Plugin page: stormtribe-job-se...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-4.0.1
  • WordPress version: 5.8.1
  • First release: Apr 25, 2014
  • Latest release: Dec 4, 2014
  • Number of updates: 11
  • Update frequency: every 20.3 days
  • Top authors: HellishER (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,074 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/stormtribe-job-seeker/stdev-job-seeker.php+275
    Function create_function() is deprecated

Server metrics [RAM: ▼1.76MB] [CPU: ▼190.79ms] Passed 4 tests

Server-side resources used by Stormtribe Job Seeker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.87 ▼0.965.58 ▼27.99
Dashboard /wp-admin1.89 ▼1.176.01 ▼38.61
Posts /wp-admin/edit.php1.89 ▼1.225.46 ▼39.61
Add New Post /wp-admin/post-new.php1.89 ▼3.546.08 ▼656.96
Media Library /wp-admin/upload.php1.89 ▼1.115.83 ▼25.82
Settings /wp-admin/admin.php?page=stdev_job_seeker_menu_settings1.895.16
Add new job /wp-admin/post-new.php?post_type=jobs1.895.68
All jobs /wp-admin/edit.php?post_type=jobs1.895.70
Areas /wp-admin/edit-tags.php?taxonomy=area&post_type=jobs1.894.96
Careers /wp-admin/edit-tags.php?taxonomy=career&post_type=jobs1.894.95
Information /wp-admin/admin.php?page=stdev_job_seeker_menu_main1.895.07

Server storage [IO: ▲0.10MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 2 new options
New WordPress options
widget_sjs_scroller_widget
stdev_job_seeker_blog_settings

Browser metrics Passed 4 tests

A check of browser resources used by Stormtribe Job Seeker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲19415.89 ▼0.129.93 ▲1.2146.90 ▼2.83
Dashboard /wp-admin3,043 ▲1095.92 ▼0.05142.99 ▼7.22123.53 ▲13.92
Posts /wp-admin/edit.php2,820 ▲812.59 ▼0.1265.84 ▼0.9286.80 ▼8.47
Add New Post /wp-admin/post-new.php1,668 ▲8721.37 ▲1.23304.07 ▼89.79106.65 ▼2.51
Media Library /wp-admin/upload.php1,831 ▲215.00 ▼0.06138.94 ▼16.70136.75 ▲22.30
Settings /wp-admin/admin.php?page=stdev_job_seeker_menu_settings1,2562.1256.8376.31
Add new job /wp-admin/post-new.php?post_type=jobs3,5769.17228.23165.22
All jobs /wp-admin/edit.php?post_type=jobs1,5512.6463.8069.40
Areas /wp-admin/edit-tags.php?taxonomy=area&post_type=jobs1,8192.4261.5579.73
Careers /wp-admin/edit-tags.php?taxonomy=career&post_type=jobs1,8192.4162.9176.87
Information /wp-admin/admin.php?page=stdev_job_seeker_menu_main1,3002.0655.6569.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/stormtribe-job-seeker/stdev-job-seeker.php+275
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_sjs_scroller_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=stdev_job_seeker_menu_main
    • > Deprecated in wp-content/plugins/stormtribe-job-seeker/stdev-job-seeker.php+275
    Function create_function() is deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=stdev_job_seeker_menu_settings
    • > Warning in wp-content/plugins/stormtribe-job-seeker/admin/admin.php+517
    count(): Parameter must be an array or an object that implements Countable

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/stormtribe-job-seeker/my_job_seeker.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/stormtribe-job-seeker/stdev-job-seeker.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/stormtribe-job-seeker/admin/readme.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stormtribe-job-seeker/admin/admin.php:3

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 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
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

stormtribe-job-seeker/stdev-job-seeker.php 92% from 13 tests

The main PHP file in "Stormtribe Job Seeker" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("stormtribe-job-seeker.php" instead of "stdev-job-seeker.php")

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
There were no executable files found in this plugin1,582 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP71631151,293
PO File1253446264
CSS16125

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity31.00
▷ Minimum class complexity10.00
▷ Maximum class complexity67.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods832.00%
▷ Public methods1664.00%
▷ Protected methods00.00%
▷ Private methods936.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin_menu_icon.png0.59KB0.60KB0.00%
assets/stma_logo.png12.38KB5.94KB▼ 52.06%