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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.17 | 8.58 ▼36.03 |
Dashboard /wp-admin | 3.22 ▼0.09 | 35.10 ▼18.70 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 39.06 ▼7.96 |
Add New Post /wp-admin/post-new.php | 5.45 ▼0.43 | 71.65 ▼26.25 |
Media Library /wp-admin/upload.php | 3.22 ▼0.01 | 34.47 ▲2.78 |
Online Help Sliding Menu /wp-admin/options-general.php?page=OHSMSetup | 3.20 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲144 | 13.58 ▼0.72 | 7.33 ▲5.14 | 45.11 ▲3.35 |
Dashboard /wp-admin | 2,210 ▲22 | 4.82 ▼1.09 | 105.89 ▼19.62 | 40.56 ▼6.15 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▼0.08 | 39.55 ▼2.69 | 35.25 ▼3.98 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 23.26 ▲5.08 | 656.18 ▼2.93 | 62.57 ▲4.77 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.01 | 99.89 ▼3.95 | 46.56 ▼2.18 |
Online Help Sliding Menu /wp-admin/options-general.php?page=OHSMSetup | 1,248 | 3.33 | 79.55 | 44.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
- > PHP Fatal error
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.)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 54 | 21 | 851 |
PHP | 5 | 283 | 68 | 660 |
SVG | 1 | 0 | 0 | 288 |
JavaScript | 2 | 37 | 5 | 93 |
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 code | 0.38 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 6.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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