Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼154.32ms] Passed 4 tests
Server-side resources used by Push7 Subscribe button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 36.99 ▲9.34 |
Dashboard /wp-admin | 3.09 ▲0.04 | 47.28 ▼0.35 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 45.40 ▼2.71 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 94.31 ▼610.48 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 32.27 ▼3.73 |
Push7 Buttons /wp-admin/options-general.php?page=push7-ssb | 3.00 | 30.11 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_push7-subscribe |
Browser metrics Passed 4 tests
Push7 Subscribe button: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲114 | 15.78 ▲0.26 | 7.37 ▼6.15 | 47.98 ▲0.46 |
Dashboard /wp-admin | 2,972 ▲41 | 5.91 ▼0.21 | 161.58 ▲20.61 | 111.40 ▲1.13 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.01 | 63.96 ▼6.91 | 94.91 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,673 ▼10 | 19.13 ▲4.67 | 376.01 ▼125.04 | 115.09 ▼2.39 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.01 ▼0.02 | 153.65 ▲3.53 | 117.15 ▼11.07 |
Push7 Buttons /wp-admin/options-general.php?page=push7-ssb | 1,138 | 2.61 | 74.57 | 88.07 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_push7-subscribe
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/simple-push-subscribe-button/push7-subscribe-button.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: web push, push notification, notifications, desktop notifications
simple-push-subscribe-button/push7-subscribe-button.php 85% from 13 tests
"Push7 Subscribe button" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-push-subscribe-button.php" instead of "push7-subscribe-button.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
Success! There were no dangerous files found in this plugin1,152 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 208 | 545 | 646 |
CSS | 4 | 22 | 0 | 158 |
Sass | 3 | 18 | 1 | 105 |
JavaScript | 4 | 0 | 22 | 92 |
TypeScript | 2 | 25 | 29 | 90 |
Markdown | 1 | 39 | 0 | 61 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.22 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 2 | 25.00% |
Methods | 64 | |
▷ Static methods | 15 | 23.44% |
▷ Public methods | 54 | 84.38% |
▷ Protected methods | 1 | 1.56% |
▷ Private methods | 9 | 14.06% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/smart-push7.png | 2.14KB | 2.11KB | ▼ 1.19% |