72% online-help-sliding-menu

Code Review | Online Help Sliding Menu

WordPress plugin Online Help Sliding Menu scored72%from 54 tests.

About plugin

  • Plugin page: online-help-slidi...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.6
  • WordPress version: 6.3.1
  • First release: Jan 5, 2018
  • Latest release: Jul 2, 2018
  • Number of updates: 20
  • Update frequency: every 9.0 days
  • Top authors: fabiandragos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /703 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.44MB] [CPU: ▼22.24ms] Passed 4 tests

Analyzing server-side resources used by Online Help Sliding Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.29 ▼1.178.58 ▼36.03
Dashboard /wp-admin3.22 ▼0.0935.10 ▼18.70
Posts /wp-admin/edit.php3.28 ▼0.0839.06 ▼7.96
Add New Post /wp-admin/post-new.php5.45 ▼0.4371.65 ▼26.25
Media Library /wp-admin/upload.php3.22 ▼0.0134.47 ▲2.78
Online Help Sliding Menu /wp-admin/options-general.php?page=OHSMSetup3.2032.45

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 10 new options
New WordPress options
widget_ohsm_widget
ohsm_BstOn
widget_theysaidso_widget
widget_recent-comments
ohsm_responsive_btn_label
widget_recent-posts
ohsm_custom_css
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Online Help Sliding Menu
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲14413.58 ▼0.727.33 ▲5.1445.11 ▲3.35
Dashboard /wp-admin2,210 ▲224.82 ▼1.09105.89 ▼19.6240.56 ▼6.15
Posts /wp-admin/edit.php2,093 ▲12.02 ▼0.0839.55 ▼2.6935.25 ▼3.98
Add New Post /wp-admin/post-new.php1,536 ▲723.26 ▲5.08656.18 ▼2.9362.57 ▲4.77
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.0199.89 ▼3.9546.56 ▼2.18
Online Help Sliding Menu /wp-admin/options-general.php?page=OHSMSetup1,2483.3379.5544.51

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 10 options in the database
    • ohsm_custom_css
    • ohsm_BstOn
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_ohsm_widget
    • widget_theysaidso_widget
    • ohsm_responsive_btn_label
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=OHSMSetup
    • > Notice in wp-content/plugins/online-help-sliding-menu/ohsm.php+220
    Trying to access array offset on value of type int

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/online-help-sliding-menu/ohsm_import_admin.php
    • > /wp-content/plugins/online-help-sliding-menu/ohsm.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/online-help-sliding-menu/OHSM_Widget.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/online-help-sliding-menu/OHSM_Walker_Nav_menu.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Page' not found in wp-content/plugins/online-help-sliding-menu/OHSM_Walker_Pages.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #7 (How to check the MAX_INPUT_VARS PHP variable value.)
The official readme.txt might help

online-help-sliding-menu/ohsm.php 92% from 13 tests

"Online Help Sliding Menu" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("online-help-sliding-menu.php" instead of "ohsm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,892 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS25421851
PHP528368660
SVG100288
JavaScript237593

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity19.33
▷ Minimum class complexity16.00
▷ Maximum class complexity23.00
Average method complexity6.10
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin