Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▲4.02ms] Passed 4 tests
Analyzing server-side resources used by Splash Popup for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 36.59 ▼2.82 |
Dashboard /wp-admin | 3.55 ▲0.25 | 54.75 ▲8.94 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 54.02 ▲5.92 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 104.69 ▲4.05 |
Media Library /wp-admin/upload.php | 3.47 ▲0.25 | 44.96 ▲10.49 |
Server storage [IO: ▲2.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 113 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
berocket_admin_notices_rate_stars |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
br-splash_popup-options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Splash Popup for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.26 ▼1.06 | 4.24 ▲2.58 | 42.88 ▼9.10 |
Dashboard /wp-admin | 2,230 ▲45 | 4.92 ▼0.00 | 104.13 ▼8.40 | 64.81 ▲22.85 |
Posts /wp-admin/edit.php | 2,130 ▲38 | 2.15 ▲0.15 | 38.38 ▼6.58 | 34.64 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 23.28 ▼0.04 | 700.51 ▲98.41 | 59.27 ▲12.54 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.19 ▼0.03 | 101.11 ▼1.20 | 74.39 ▲29.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- berocket_admin_notices_rate_stars
- db_upgraded
- berocket_key_activated_plugins
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 34× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/splash-popup-for-woocommerce/berocket/templates/premium.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/splash-popup-for-woocommerce/berocket/templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'BeRocket_framework_addon_lib' not found in wp-content/plugins/splash-popup-for-woocommerce/addons/deprecated_old_popup/deprecated_old_popup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/splash-popup-for-woocommerce/main.php:3
- > PHP Fatal error
Uncaught Error: Class 'BeRocket_plugin_variations' not found in wp-content/plugins/splash-popup-for-woocommerce/addons/deprecated_old_popup/popup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/splash-popup-for-woocommerce/berocket/libraries/tippy.php:7
- > PHP Notice
Undefined variable: framework_version in wp-content/plugins/splash-popup-for-woocommerce/berocket/framework_version.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'BeRocket_framework_template_lib' not found in wp-content/plugins/splash-popup-for-woocommerce/style_templates/nice-blue/nice-blue.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/splash-popup-for-woocommerce/main.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/splash-popup-for-woocommerce/berocket/includes/admin_notices.php:797
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (General settings) image required
- Donate link: Invalid URI ("httpы://berocket.com/?utm_source=wordpress_org&utm_medium=donate&utm_campaign=splash_popup")
- Tags: You are using too many tags: 46 tag instead of maximum 10
splash-popup-for-woocommerce/woocommerce-splash-popup.php 92% from 13 tests
"Splash Popup for WooCommerce" version 3.5.7.8'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: The principal plugin file should be the same as the plugin slug ("splash-popup-for-woocommerce.php" instead of "woocommerce-splash-popup.php")
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 plugin21,413 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 21 | 2,595 | 76 | 10,067 |
PHP | 46 | 456 | 1,457 | 9,037 |
JavaScript | 7 | 67 | 80 | 1,835 |
PO File | 2 | 194 | 216 | 430 |
XML | 2 | 0 | 0 | 44 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 38.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 386 | |
▷ Static methods | 142 | 36.79% |
▷ Public methods | 386 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
style_templates/simple-shadow/simple-shadow.png | 7.30KB | 3.84KB | ▼ 47.35% |
berocket/assets/images/submenu-icon-a.png | 0.54KB | 0.48KB | ▼ 10.20% |
berocket/libraries/addons/default.png | 3.87KB | 2.63KB | ▼ 31.94% |
style_templates/nice-green/nice-green.png | 7.53KB | 3.67KB | ▼ 51.22% |
style_templates/simple-and-nice/simple-and-nice.png | 9.01KB | 4.72KB | ▼ 47.62% |