Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/zendesk-help-center/zendesk-help-center.php+167
Trying to access array offset on value of type null
Server metrics [RAM: ▲0.94MB] [CPU: ▲4.72ms] Passed 4 tests
Analyzing server-side resources used by Help Center by BestWebSoft
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.92 | 50.14 ▲12.08 |
Dashboard /wp-admin | 4.28 ▲0.98 | 56.67 ▲1.28 |
Posts /wp-admin/edit.php | 4.33 ▲0.98 | 60.59 ▲9.16 |
Add New Post /wp-admin/post-new.php | 6.82 ▲0.94 | 96.73 ▼2.92 |
Media Library /wp-admin/upload.php | 4.14 ▲0.92 | 48.29 ▲11.35 |
Server storage [IO: ▲4.58MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 118 new files
Database: 6 new tables, 8 new options
New tables |
---|
wp_zndskhc_categories |
wp_zndskhc_articles |
wp_zndskhc_comments |
wp_zndskhc_labels |
wp_zndskhc_attachments |
wp_zndskhc_sections |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
zndskhc_options |
bstwbsftwppdtplgns_options |
Browser metrics Passed 4 tests
Checking browser requirements for Help Center by BestWebSoft
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲79 | 13.30 ▼1.24 | 1.76 ▼0.44 | 42.43 ▼4.24 |
Dashboard /wp-admin | 2,250 ▲59 | 5.89 ▲1.01 | 104.52 ▼2.65 | 41.32 ▼4.32 |
Posts /wp-admin/edit.php | 2,142 ▲53 | 2.05 ▲0.03 | 40.85 ▼0.68 | 37.88 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.44 ▲0.25 | 682.98 ▲22.94 | 61.66 ▲12.40 |
Media Library /wp-admin/upload.php | 1,435 ▲47 | 4.22 ▲0.02 | 97.70 ▼9.34 | 49.79 ▲1.77 |
Articles /wp-admin/zendesk_articles.php | 26 | 0.44 | 0.06 | 14.36 |
Settings /wp-admin/zendesk_hc.php | 26 | 0.44 | 0.19 | 5.64 |
BWS Panel /wp-admin/zendesk_hc.php?page=zndskhc-bws-panel | 26 | 0.44 | 0.08 | 5.79 |
Widget Statistic /wp-admin/zendesk_widget_statistic.php | 26 | 0.44 | 0.16 | 7.52 |
Help Center /wp-admin/zendesk_hc_backup.php | 26 | 0.44 | 0.09 | 7.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/zendesk-help-center/includes/class-zndskhc-settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/zendesk-help-center/zendesk-help-center.php:1388
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zendesk-help-center/bws_menu/class-bws-settings.php:1452
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/zendesk-help-center/bws_menu/product_list.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/zendesk_articles.php
- > Network (severe)
wp-admin/zendesk_articles.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/zendesk_hc.php
- > Network (severe)
wp-admin/zendesk_hc.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/zendesk_hc.php?page=zndskhc-bws-panel
- > Network (severe)
wp-admin/zendesk_hc.php?page=zndskhc-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/zendesk_widget_statistic.php
- > Network (severe)
wp-admin/zendesk_widget_statistic.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/zendesk_hc_backup.php
- > Network (severe)
wp-admin/zendesk_hc_backup.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Plugin main page.), #2 (Plugin settings page.)
- Tags: You are using too many tags: 12 tag instead of maximum 10
zendesk-help-center/zendesk-help-center.php Passed 13 tests
"Help Center by BestWebSoft" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
95 characters long description:
Backup and export Zendesk Help Center content automatically to your WordPress website database.
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 plugin19,614 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 10 | 3,452 | 4,966 | 7,825 |
PHP | 9 | 565 | 586 | 5,596 |
CSS | 10 | 189 | 273 | 5,538 |
JavaScript | 7 | 27 | 113 | 505 |
SVG | 4 | 0 | 0 | 150 |
PHP code Passed 2 tests
This is a very shot review 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.61 |
Average class complexity | 85.33 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 12.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 73.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 26.09% |
Functions | 76 | |
▷ Named functions | 76 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
61 PNG files occupy 2.98MB with 1.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
screenshot-2.png | 155.97KB | 50.83KB | ▼ 67.41% |
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-icons_cd0a0a_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |