Benchmarks
Plugin footprint 83% 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.01MB] [CPU: ▼5.14ms] Passed 4 tests
Server-side resources used by Product-Purchase-Notifications
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.15 ▼3.64 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.88 ▼3.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.04 ▼4.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.95 ▼8.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.21 ▲0.09 |
Notify Me Settings /wp-admin/options-general.php?page=notify_me | 3.00 | 24.92 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 14 new options
New WordPress options |
---|
notify_color_text |
widget_theysaidso_widget |
notify_time |
notify_color_shadow |
db_upgraded |
widget_recent-comments |
notify_color_title |
can_compress_scripts |
notify_showOrHideName |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product-Purchase-Notifications
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.29 ▼1.10 | 1.63 ▼0.11 | 40.66 ▼2.67 |
Dashboard /wp-admin | 2,206 ▲15 | 4.89 ▲0.01 | 102.31 ▲1.12 | 38.98 ▼5.32 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.04 | 39.98 ▲1.48 | 35.10 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,542 ▲17 | 18.34 ▼4.72 | 622.10 ▼57.55 | 52.20 ▲1.71 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▼0.03 | 95.20 ▼7.76 | 40.09 ▼3.54 |
Notify Me Settings /wp-admin/options-general.php?page=notify_me | 28 | 0.44 | 0.09 | 4.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 14 options
- widget_recent-comments
- notify_positionOfTheBanner
- theysaidso_admin_options
- notify_color_text
- notify_color_shadow
- notify_color_title
- widget_theysaidso_widget
- db_upgraded
- notify_toggle_img
- can_compress_scripts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=notify_me
- > Network (severe)
wp-admin/options-general.php?page=notify_me - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Donate link: Invalid url: "..."
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
product-purchase-notifications/Product-Purchase-Notifications.php 92% from 13 tests
The entry point to "Product-Purchase-Notifications" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("product-purchase-notifications.php" instead of "Product-Purchase-Notifications.php")
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
There were no executable files found in this plugin637 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 35 | 71 | 346 |
CSS | 2 | 24 | 2 | 167 |
JavaScript | 2 | 5 | 13 | 124 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.33MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 79.39KB | 24.91KB | ▼ 68.63% |
assets/banner-772x250.png | 68.19KB | 20.86KB | ▼ 69.41% |
assets/icon-128x128.png | 12.96KB | 4.31KB | ▼ 66.75% |
assets/screenshot-2.png | 145.93KB | 50.65KB | ▼ 65.29% |
assets/icon-256x256.png | 28.76KB | 8.72KB | ▼ 69.69% |