Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.32ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Spin Popup
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.22 ▼5.55 |
Dashboard /wp-admin | 3.39 ▲0.09 | 49.15 ▲2.66 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 52.96 ▲5.30 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 94.89 ▼3.69 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 41.26 ▲7.89 |
Spinio Wheel /wp-admin/admin.php?page=spinio-display | 3.36 | 39.03 |
Help /wp-admin/admin.php?page=spinio-help | 3.31 | 36.19 |
Support /wp-admin/admin.php?page=spinio-support | 3.35 | 30.78 |
Subscribers /wp-admin/admin.php?page=spinio-subscribers | 3.33 | 33.48 |
Style /wp-admin/admin.php?page=spinio-style | 3.41 | 35.48 |
Settings /wp-admin/admin.php?page=spinio-settings | 3.33 | 32.24 |
Server storage [IO: ▲1.54MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 79 new files
Database: 1 new table, 17 new options
New tables |
---|
wp_spinio_emails |
New WordPress options |
---|
widget_recent-posts |
spinio_style_04757 |
theysaidso_admin_options |
spinio_form_right |
spinio_style_94031 |
spinio_style_90014 |
spinio_style_id |
db_upgraded |
spinio-slice |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
WooCommerce Spin Popup: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,016 ▲259 | 15.20 ▲0.82 | 1.54 ▼0.46 | 25.09 ▼20.77 |
Dashboard /wp-admin | 2,425 ▲237 | 6.86 ▲0.97 | 142.77 ▲37.69 | 51.92 ▲9.28 |
Posts /wp-admin/edit.php | 2,334 ▲245 | 3.80 ▲1.76 | 60.67 ▲23.23 | 42.32 ▲6.50 |
Add New Post /wp-admin/post-new.php | 1,748 ▲214 | 25.26 ▲1.86 | 568.97 ▼131.48 | 38.23 ▼14.22 |
Media Library /wp-admin/upload.php | 1,470 ▲79 | 4.64 ▲0.50 | 86.81 ▼84.40 | 49.71 ▼10.55 |
Spinio Wheel /wp-admin/admin.php?page=spinio-display | 2,078 | 3.55 | 45.33 | 66.03 |
Help /wp-admin/admin.php?page=spinio-help | 1,084 | 3.43 | 46.37 | 75.07 |
Support /wp-admin/admin.php?page=spinio-support | 1,131 | 3.44 | 42.47 | 32.20 |
Subscribers /wp-admin/admin.php?page=spinio-subscribers | 1,044 | 3.45 | 48.35 | 28.72 |
Style /wp-admin/admin.php?page=spinio-style | 1,170 | 3.57 | 46.36 | 29.97 |
Settings /wp-admin/admin.php?page=spinio-settings | 1,153 | 3.68 | 45.64 | 27.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_spinio_emails
- This plugin did not uninstall successfully, leaving 17 options in the database
- theysaidso_admin_options
- spinio_form_right
- spinio_style_90014
- spinio_style_79439
- can_compress_scripts
- spinio_display
- spinio_style_94031
- db_upgraded
- widget_recent-comments
- spinio_style_04757
- ...
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wc-spin-to-win-wheel/admin/partials/spinio-display.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-spin-to-win-wheel/admin/partials/spinio-support.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_all_page_ids() in wp-content/plugins/wc-spin-to-win-wheel/admin/partials/spinio-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-spin-to-win-wheel/admin/partials/spinio-style.php:20
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wc-spin-to-win-wheel/admin/partials/spinio-subscribers.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wc-spin-to-win-wheel/admin/partials/spinio-help.php:18
- > 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=spinio-display
- > Network (severe)
https://spinio.bixab.com/bixab.png - Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in wc-spin-to-win-wheel/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
wc-spin-to-win-wheel/spinio.php 77% from 13 tests
The main PHP file in "WooCommerce Spin Popup" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "4.0.0")
- Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "5.6")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-spin-to-win-wheel.php" instead of "spinio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin4,616 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 264 | 593 | 2,012 |
JavaScript | 14 | 283 | 220 | 1,445 |
CSS | 4 | 93 | 110 | 852 |
SVG | 8 | 0 | 0 | 307 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 45 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
25 PNG files occupy 0.51MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/s1.png | 2.70KB | 0.90KB | ▼ 66.51% |
public/img/bg-circles02-invert.png | 9.03KB | 6.29KB | ▼ 30.40% |
public/img/bg-pat-green.png | 5.98KB | 1.00KB | ▼ 83.29% |
admin/img/step4.png | 14.78KB | 7.56KB | ▼ 48.83% |
public/img/bg-summer01.png | 8.46KB | 6.01KB | ▼ 28.93% |