Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.53ms] Passed 4 tests
Server-side resources used by HelpNinja
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.71 ▼1.44 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.92 ▼4.66 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 46.78 ▲0.83 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 88.72 ▼8.68 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.79 ▲0.67 |
HelpNinja /wp-admin/options-general.php?page=help-ninja-setting | 3.27 | 29.00 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 12 new options
New WordPress options |
---|
helpninja_app_version |
helpninja_api_key |
helpninja_edd_api_key |
helpninja_db_version |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
helpninja_lantern_enable |
widget_recent-comments |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by HelpNinja
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲158 | 13.87 ▼0.53 | 5.37 ▲3.62 | 38.30 ▼3.42 |
Dashboard /wp-admin | 2,215 ▲30 | 5.86 ▼0.02 | 106.83 ▲1.66 | 42.25 ▲2.49 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.04 ▲0.04 | 38.85 ▼0.16 | 34.73 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,545 ▲2 | 18.32 ▲0.15 | 622.13 ▼1.90 | 53.32 ▲0.56 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.25 ▲0.06 | 94.95 ▼6.43 | 42.98 ▼1.41 |
HelpNinja /wp-admin/options-general.php?page=help-ninja-setting | 819 | 2.03 | 25.76 | 25.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/helpninja/admin/view/hn_woocommerce_setting_form.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/helpninja/admin/view/hn_edd_setting_form.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/helpninja/admin/view/hn_lantern_setting_form.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: helpninja, helpdesk, simple, supportdesk
helpninja/init.php 92% from 13 tests
Analyzing the main PHP file in "HelpNinja" version 1.0.0
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("helpninja.php" instead of "init.php")
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
No dangerous file extensions were detected471 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 44 | 21 | 335 |
JavaScript | 2 | 9 | 8 | 136 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin