Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.78ms] Passed 4 tests
Server-side resources used by Subscribers - Free Web Push Notifications
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.76 ▲1.79 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.98 ▼4.01 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.64 ▲1.03 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.86 ▼12.88 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.18 ▲0.75 |
Subscribers /wp-admin/options-general.php?page=subscribers_options | 3.21 | 31.49 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Subscribers - Free Web Push Notifications: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲78 | 14.74 ▲0.16 | 1.78 ▼0.02 | 48.72 ▼2.08 |
Dashboard /wp-admin | 2,219 ▲34 | 5.81 ▲0.92 | 97.88 ▼12.62 | 40.39 ▼5.21 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.03 ▲0.03 | 39.44 ▲3.66 | 36.42 ▲2.92 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.30 ▲0.20 | 667.91 ▲20.36 | 61.25 ▲11.06 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.22 ▲0.01 | 97.35 ▼15.15 | 42.24 ▼6.68 |
Subscribers /wp-admin/options-general.php?page=subscribers_options | 862 | 2.14 | 23.65 | 33.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function swpush_sanitize() in wp-content/plugins/subscribers-com/firebase-messaging-sw.js.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/subscribers-com/subscribers.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
subscribers-com/subscribers.php 92% from 13 tests
"Subscribers - Free Web Push Notifications" version 1.5.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("subscribers-com.php" instead of "subscribers.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected144 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 32 | 48 | 144 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 11 | |
▷ Named functions | 11 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.29MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/source-code-success-1x.png | 43.87KB | 18.79KB | ▼ 57.18% |
images/site-id-screenshot.png | 65.36KB | 19.03KB | ▼ 70.89% |
images/pc_with_notifications-1x.png | 186.63KB | 52.39KB | ▼ 71.93% |