Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲1.59MB] [CPU: ▲5.92ms] Passed 4 tests
Analyzing server-side resources used by Salesbox forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.96 ▲1.49 | 50.58 ▲7.16 |
Dashboard /wp-admin | 4.91 ▲1.61 | 62.89 ▲10.11 |
Posts /wp-admin/edit.php | 5.02 ▲1.67 | 61.20 ▲10.97 |
Add New Post /wp-admin/post-new.php | 7.52 ▲1.64 | 96.71 ▼4.56 |
Media Library /wp-admin/upload.php | 4.83 ▲1.61 | 53.12 ▲16.69 |
Add New /wp-admin/admin.php?page=sbf-new | 4.94 | 44.20 |
Contact Forms /wp-admin/admin.php?page=sbf | 4.87 | 47.00 |
Connect to Salesbox /wp-admin/admin.php?page=sbf-integration | 4.81 | 44.86 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 94 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
sbf |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Salesbox forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲83 | 13.75 ▼0.65 | 6.49 ▲4.33 | 39.37 ▼8.21 |
Dashboard /wp-admin | 2,236 ▲48 | 4.85 ▼1.01 | 104.66 ▲4.97 | 40.49 ▼2.12 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.03 ▲0.06 | 35.75 ▼2.24 | 34.36 ▼1.70 |
Add New Post /wp-admin/post-new.php | 6,204 ▲4,671 | 19.17 ▼3.85 | 897.06 ▲194.29 | 50.32 ▼4.81 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.20 ▲0.00 | 105.18 ▼2.54 | 50.94 ▲5.26 |
Add New /wp-admin/admin.php?page=sbf-new | 3,251 | 2.51 | 53.39 | 36.74 |
Contact Forms /wp-admin/admin.php?page=sbf | 1,214 | 1.97 | 30.19 | 32.59 |
Connect to Salesbox /wp-admin/admin.php?page=sbf-integration | 884 | 2.35 | 28.94 | 29.12 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=sbf-new
- > Notice in wp-content/plugins/salesbox-forms/admin/includes/editor.php+298
Undefined offset: 0
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sbf-new
- > Notice in wp-content/plugins/salesbox-forms/admin/includes/editor.php+391
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/salesbox-forms/admin/edit-contact-form.php
- > /wp-content/plugins/salesbox-forms/admin/includes/editor.php
- 37× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/salesbox-forms/modules/salesbox-crm.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/salesbox-forms/includes/submission.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/salesbox-forms/includes/rest-api.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/salesbox-forms/admin/includes/class-contact-forms-list-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/salesbox-forms/salesbox-crm-form.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/salesbox-forms/modules/hidden.php:3
- > PHP Warning
Use of undefined constant SBF_PLUGIN_DIR - assumed 'SBF_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/salesbox-forms/load.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/salesbox-forms/modules/select.php:8
- > PHP Fatal error
require_once(): Failed opening required 'SBF_PLUGIN_DIR/admin/includes/admin-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/salesbox-forms/admin/admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/salesbox-forms/modules/disallowed-list.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=sbf
- > Intervention (severe) in unknown
/wp-admin/admin.php?page=sbf-new - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: salesbox, feedback, email, contact, form...
salesbox-forms/salesbox-crm-form.php 85% from 13 tests
The main PHP file in "Salesbox forms" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("salesbox-forms.php" instead of "salesbox-crm-form.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin13,588 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 2,824 | 375 | 10,012 |
CSS | 8 | 173 | 118 | 2,180 |
JavaScript | 17 | 345 | 110 | 1,395 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 28.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 1 | 4.00% |
▷ Concrete classes | 24 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 300 | |
▷ Static methods | 30 | 10.00% |
▷ Public methods | 240 | 80.00% |
▷ Protected methods | 20 | 6.67% |
▷ Private methods | 40 | 13.33% |
Functions | 250 | |
▷ Named functions | 233 | 93.20% |
▷ Anonymous functions | 17 | 6.80% |
Constants | 35 | |
▷ Global constants | 18 | 51.43% |
▷ Class constants | 17 | 48.57% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/js/jquery-ui/themes/smoothness/images/ui-icons_888888_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
includes/js/jquery-ui/themes/smoothness/images/ui-icons_222222_256x240.png | 6.86KB | 4.18KB | ▼ 39.05% |
includes/js/jquery-ui/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.26KB | 0.09KB | ▼ 66.79% |
includes/js/jquery-ui/themes/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
includes/js/jquery-ui/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.38KB | 0.12KB | ▼ 67.68% |