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 gracefully, with no errors
Server metrics [RAM: ▼0.10MB] [CPU: ▼0.66ms] Passed 4 tests
Analyzing server-side resources used by Truepush - Most Affordable Web Push Notifications
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.76 ▲2.63 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.54 ▲4.61 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.85 ▲3.58 |
Add New Post /wp-admin/post-new.php | 5.45 ▼0.43 | 72.41 ▼9.42 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.56 ▲0.59 |
Server storage [IO: ▲0.28MB] [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: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Truepush - Most Affordable Web Push Notifications
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲70 | 13.27 ▲0.01 | 9.90 ▲8.15 | 45.98 ▲3.38 |
Dashboard /wp-admin | 2,233 ▲30 | 4.86 ▼0.02 | 100.31 ▲0.89 | 39.47 ▲3.46 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.04 ▲0.07 | 35.86 ▲2.09 | 32.61 ▼1.59 |
Add New Post /wp-admin/post-new.php | 6,533 ▲5,000 | 20.12 ▼3.02 | 887.17 ▲213.78 | 52.42 ▼3.91 |
Media Library /wp-admin/upload.php | 1,412 ▲21 | 4.25 ▲0.09 | 94.81 ▼7.89 | 45.33 ▼2.70 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/truepush-free-web-push-notifications/truepush-main.php
- > /wp-content/plugins/truepush-free-web-push-notifications/truepush.php
- > /wp-content/plugins/truepush-free-web-push-notifications/truepush-active.php
- > /wp-content/plugins/truepush-free-web-push-notifications/truepush-public.php
- > /wp-content/plugins/truepush-free-web-push-notifications/sw2.php
- > /wp-content/plugins/truepush-free-web-push-notifications/views/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
truepush-free-web-push-notifications/truepush.php 92% from 13 tests
The main file in "Truepush - Most Affordable Web Push Notifications" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("truepush-free-web-push-notifications.php" instead of "truepush.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,684 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 99 | 15 | 1,008 |
CSS | 3 | 98 | 46 | 550 |
JavaScript | 2 | 14 | 3 | 110 |
SVG | 2 | 0 | 0 | 16 |
PHP code Passed 2 tests
An short overview of 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.54 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 5.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 29 | 80.56% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/images/settings.png | 17.33KB | 9.93KB | ▼ 42.67% |
views/images/notification.png | 22.08KB | 13.57KB | ▼ 38.56% |
views/images/h-box+.png | 28.84KB | 12.85KB | ▼ 55.44% |
views/images/tp_logo_w.png | 36.91KB | 19.49KB | ▼ 47.20% |
views/images/logo.png | 0.38KB | 0.27KB | ▼ 30.00% |