Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.34MB] [CPU: ▼2.53ms] Passed 4 tests
Analyzing server-side resources used by WP Optin Wheel - Gamified Optin Email Marketing Tool for WordPress and WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 43.47 ▲4.56 |
Dashboard /wp-admin | 3.72 ▲0.38 | 47.25 ▼13.84 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 42.76 ▼1.98 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 81.72 ▲1.15 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 36.76 ▲5.67 |
WP Optin Wheel /wp-admin/options-general.php?page=wp-optin-wheel | 3.84 | 43.97 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 114 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wof_lite_optins |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
wof-lite-dev-version |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Optin Wheel - Gamified Optin Email Marketing Tool for WordPress and WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲124 | 13.81 ▼0.61 | 9.41 ▲7.57 | 41.04 ▼2.18 |
Dashboard /wp-admin | 2,199 ▲29 | 5.50 ▼0.18 | 81.85 ▼20.26 | 37.07 ▼5.87 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.05 | 33.32 ▼5.85 | 34.17 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.28 ▲0.09 | 662.81 ▼30.86 | 53.56 ▼2.23 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.23 ▲0.12 | 93.43 ▼7.81 | 41.43 ▼4.25 |
WP Optin Wheel /wp-admin/options-general.php?page=wp-optin-wheel | 3,427 | 9.18 | 255.95 | 96.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-optin-wheel/admin/views/sidebar-main.php
- > /wp-content/plugins/wp-optin-wheel/admin/views/log.php
- > /wp-content/plugins/wp-optin-wheel/admin/views/gdpr-settings.php
- > /wp-content/plugins/wp-optin-wheel/core/views/fields/container-option.php
- > /wp-content/plugins/wp-optin-wheel/admin/views/form-builder-lists.php
- > /wp-content/plugins/wp-optin-wheel/core/views/fields/colorpicker.php
- > /wp-content/plugins/wp-optin-wheel/admin/views/privacy-policy-suggestions.php
- > /wp-content/plugins/wp-optin-wheel/core/views/widget_form.php
- 74× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-optin-wheel/code/views/response-lost.php:6
- > PHP Notice
Trying to get property 'value' of non-object in wp-content/plugins/wp-optin-wheel/core/views/fields/datepicker.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'MABEL_WOF_LITE\\Core\\Common\\Managers\\Config_Manager' not found in wp-content/plugins/wp-optin-wheel/core/views/fields/help.php:9
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/wp-optin-wheel/core/views/fields/autocomplete.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-optin-wheel/core/views/fields/pro-option.php:6
- > PHP Notice
Trying to get property 'button_text' of non-object in wp-content/plugins/wp-optin-wheel/core/views/fields/container-option.php on line 10
- > PHP Notice
Undefined variable: option in wp-content/plugins/wp-optin-wheel/core/views/fields/hidden.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'MABEL_WOF_LITE\\Core\\Models\\Option' not found in wp-content/plugins/wp-optin-wheel/core/models/class-mediaselector-option.php:5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-optin-wheel/core/views/widget_form.php on line 9
- > PHP Notice
Undefined variable: option in wp-content/plugins/wp-optin-wheel/core/views/fields/container-option.php on line 7
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: fortune, gamification, upsell, wheel, optin
wp-optin-wheel/wp-optin-wheel.php Passed 13 tests
Analyzing the main PHP file in "WP Optin Wheel - Gamified Optin Email Marketing Tool for WordPress and WooCommerce" version 1.4.4
87 characters long description:
Gamified optin popup to grow your email list, with exit-intent. Woocommerce compatible.
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 plugin3,474 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 77 | 767 | 359 | 3,350 |
SVG | 2 | 0 | 0 | 82 |
JavaScript | 2 | 0 | 0 | 33 |
CSS | 9 | 0 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 165 | |
▷ Static methods | 44 | 26.67% |
▷ Public methods | 147 | 89.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 10.91% |
Functions | 13 | |
▷ Named functions | 2 | 15.38% |
▷ Anonymous functions | 11 | 84.62% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
20 compressed PNG files occupy 0.36MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/wheel-yellow.png | 37.72KB | 37.68KB | 0.11% |
public/img/wheel-red.png | 37.69KB | 37.59KB | 0.26% |
admin/img/wheel-yellow.png | 5.78KB | 5.95KB | 0.00% |
admin/img/wheel-black-and-white.png | 5.34KB | 5.48KB | 0.00% |
admin/img/wheel-orange.png | 5.86KB | 6.00KB | 0.00% |