Benchmarks
Plugin footprint Passed 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.05MB] [CPU: ▼143.62ms] Passed 4 tests
A check of server-side resources used by Shopboost - Surprise Hesitating Visitors
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 40.76 ▲5.23 |
Dashboard /wp-admin | 3.11 ▲0.06 | 55.28 ▲0.46 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 55.88 ▼0.03 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 97.60 ▼571.15 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 36.57 ▼3.77 |
Shopboost /wp-admin/options-general.php?page=shopboost | 3.02 | 34.06 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 2 new options
New WordPress options |
---|
shopboost_enable_for_admin |
shopboost_enable |
Browser metrics Passed 4 tests
An overview of browser requirements for Shopboost - Surprise Hesitating Visitors
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,769 ▲197 | 16.39 ▲1.15 | 12.37 ▲0.28 | 48.98 ▼4.66 |
Dashboard /wp-admin | 3,026 ▲92 | 5.93 ▼0.05 | 156.00 ▼13.55 | 116.16 ▼3.62 |
Posts /wp-admin/edit.php | 2,795 ▲56 | 2.72 ▼0.00 | 77.54 ▲1.26 | 91.48 ▼11.55 |
Add New Post /wp-admin/post-new.php | 1,701 ▲120 | 16.19 ▼1.59 | 460.33 ▲21.32 | 108.51 ▼11.39 |
Media Library /wp-admin/upload.php | 1,863 ▲53 | 5.01 ▼0.02 | 170.14 ▲7.12 | 119.90 ▼6.92 |
Shopboost /wp-admin/options-general.php?page=shopboost | 1,260 | 2.10 | 58.32 | 92.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/shopboost-surprise-hesitating-visitors/shopboost-page.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/shopboost-surprise-hesitating-visitors/shopboost.php:109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: webshop, marketing, wordpress, woocommerce
shopboost-surprise-hesitating-visitors/shopboost.php 85% from 13 tests
The entry point to "Shopboost - Surprise Hesitating Visitors" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shopboost-surprise-hesitating-visitors.php" instead of "shopboost.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin376 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 40 | 81 | 186 |
PO File | 1 | 24 | 24 | 91 |
SVG | 2 | 0 | 2 | 77 |
CSS | 1 | 3 | 0 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin