Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/woo-shortcode-popup/woo-shortcode-popup.php+32
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.95MB] [CPU: ▼33.65ms] Passed 4 tests
Server-side resources used by woo-shortcode-popup
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.43 ▲1.55 |
Dashboard /wp-admin | 3.01 ▼0.34 | 23.79 ▼33.24 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 25.46 ▼20.64 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 26.25 ▼67.46 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 23.35 ▼13.26 |
shortcode popup /wp-admin/options-general.php?page=woo-shortcode-popup/inc/menus.php | 3.01 | 22.51 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wsp |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for woo-shortcode-popup
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.28 ▼1.03 | 1.78 ▲0.13 | 42.81 ▲3.02 |
Dashboard /wp-admin | 2,207 ▲18 | 5.81 ▲0.68 | 96.51 ▼18.34 | 43.77 ▲1.51 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.99 ▼0.01 | 39.80 ▲3.45 | 37.41 ▲6.16 |
Add New Post /wp-admin/post-new.php | 1,536 ▲14 | 23.19 ▼0.19 | 636.55 ▼50.20 | 54.70 ▼0.63 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▼0.09 | 108.71 ▲10.59 | 47.31 ▲4.40 |
shortcode popup /wp-admin/options-general.php?page=woo-shortcode-popup/inc/menus.php | 796 | 2.05 | 24.88 | 25.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- wsp
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=woo-shortcode-popup/inc/menus.php
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woo-shortcode-popup/woo-shortcode-popup.php:23
- > 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 83% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Shop page with the button set.), #2 (Shop page with a different button text.), #3 (The popup, this is from contact form 7 shortcode), #4 (Admin settings page)
- Contributors: The plugin contributors field is missing
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
woo-shortcode-popup/woo-shortcode-popup.php 85% from 13 tests
The principal PHP file in "woo-shortcode-popup" v. 20160706.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 311 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected127 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 14 | 19 | 89 |
CSS | 1 | 6 | 3 | 38 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 27.10KB | 12.52KB | ▼ 53.79% |
assets/screenshot-1.png | 44.09KB | 20.04KB | ▼ 54.55% |
assets/screenshot-2.png | 52.73KB | 23.35KB | ▼ 55.72% |
assets/screenshot-4.png | 18.77KB | 7.41KB | ▼ 60.52% |
assets/gray-grad.png | 0.21KB | 0.18KB | ▼ 11.74% |