68% wp-sirvo

Code Review | Sirvo Job Search

WordPress plugin Sirvo Job Search scored68%from 54 tests.

About plugin

  • Plugin page: wp-sirvo
  • Plugin version: 1.2.18
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.6
  • WordPress version: 6.3.1
  • First release: Mar 31, 2016
  • Latest release: Sep 23, 2016
  • Number of updates: 19
  • Update frequency: every 9.3 days
  • Top authors: sirvo1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /513 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.90MB] [CPU: ▼32.24ms] Passed 4 tests

A check of server-side resources used by Sirvo Job Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.00 ▼4.32
Dashboard /wp-admin3.04 ▼0.2627.24 ▼27.48
Posts /wp-admin/edit.php3.04 ▼0.3228.76 ▼24.78
Add New Post /wp-admin/post-new.php3.04 ▼2.8528.05 ▼69.47
Media Library /wp-admin/upload.php3.04 ▼0.1928.12 ▼7.23
Sirvo Settings /wp-admin/options-general.php?page=wp-sirvo-settings3.0427.21

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sirvo Job Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.24 ▼0.382.05 ▲0.0845.89 ▼1.67
Dashboard /wp-admin2,196 ▲265.53 ▼0.1085.30 ▼22.8938.98 ▼3.13
Posts /wp-admin/edit.php2,104 ▲71.98 ▲0.0239.36 ▲0.9635.71 ▼1.46
Add New Post /wp-admin/post-new.php1,529 ▲323.20 ▲0.08682.15 ▼0.4155.75 ▼7.92
Media Library /wp-admin/upload.php1,404 ▲104.17 ▼0.0198.63 ▼0.8840.15 ▼5.35
Sirvo Settings /wp-admin/options-general.php?page=wp-sirvo-settings9261.6822.3646.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/wp-sirvo/includes/sirvo-settings.php+66
    Undefined index: affiliate_id
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-sirvo-settings
    • > Notice in wp-content/plugins/wp-sirvo/includes/sirvo-settings.php+157
    Undefined index: affiliate_id
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-sirvo-settings
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WP_Sirvo_Settings::show_login_message() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=wp-sirvo-settings
    • > Notice in wp-content/plugins/wp-sirvo/includes/sirvo-settings.php+250
    Undefined index: careers_page_locations

SRP 50% 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
Please take a closer look at the following
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sirvo/includes/sirvo-settings.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-sirvo/views/input-textarea-field.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-sirvo/resources/style.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Sirvo_Settings' not found in wp-content/plugins/wp-sirvo/resources/search_app.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-sirvo/wp-sirvo.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-sirvo/views/select-field.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-sirvo/views/settings-section-description.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-sirvo/views/business-checkbox-field.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-sirvo/views/input-field.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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Job Board.)
  • Plugin Name: Please specify the plugin name on the first line ( === wp-sirvo === )
You can look at the official readme.txt

wp-sirvo/wp-sirvo.php Passed 13 tests

"Sirvo Job Search" version 1.2.18's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
68 characters long description:
Display your Sirvo job posts directly on your website careers pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin6,830 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS288266,263
PHP1325797503
JavaScript123164

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.00
▷ Minimum class complexity2.00
▷ Maximum class complexity29.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods37
▷ Static methods3697.30%
▷ Public methods3491.89%
▷ Protected methods00.00%
▷ Private methods38.11%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/img/checkbox_icons.png0.43KB0.47KB0.00%
resources/img/search_icon.png0.32KB0.58KB0.00%
resources/img/delete_icon.png0.20KB0.29KB0.00%
resources/img/instant_search_logo@2x.png7.63KB5.29KB▼ 30.65%