Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▲2.63ms] Passed 4 tests
An overview of server-side resources used by Push Notifications for WP & AMP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.56 | 39.26 ▲0.84 |
Dashboard /wp-admin | 3.74 ▲0.43 | 46.74 ▼2.03 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 50.79 ▲5.34 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 100.67 ▲7.75 |
Media Library /wp-admin/upload.php | 3.67 ▲0.43 | 38.74 ▲6.36 |
Upgrade To Premium /wp-admin/admin.php?page=javasctipt:void(0); | 3.47 | 25.37 |
Settings /wp-admin/admin.php?page=push-notification | 3.66 | 40.54 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Push Notifications for WP & AMP: 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,837 ▲91 | 14.61 ▲0.25 | 1.54 ▼0.08 | 41.63 ▲3.17 |
Dashboard /wp-admin | 2,243 ▲69 | 5.65 ▲0.10 | 91.16 ▼0.27 | 38.34 ▼1.22 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 2.02 ▲0.01 | 41.59 ▲3.39 | 38.74 ▲4.61 |
Add New Post /wp-admin/post-new.php | 1,565 ▲29 | 22.96 ▲4.79 | 592.42 ▼16.82 | 54.76 ▼15.03 |
Media Library /wp-admin/upload.php | 1,451 ▲57 | 4.25 ▲0.06 | 96.56 ▼2.21 | 43.48 ▼1.05 |
Upgrade To Premium /wp-admin/admin.php?page=javasctipt:void(0); | 28 | 0.42 | 0.06 | 3.70 |
Settings /wp-admin/admin.php?page=push-notification | 1,135 | 3.52 | 54.77 | 32.97 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/push-notification/inc/frontend/amp-pn-subscribe.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/push-notification/inc/admin/deactivate-feedback.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=javasctipt:void(0);
- > Network (severe)
wp-admin/admin.php?page=javasctipt:void(0); - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
There were no plugin tags found
push-notification/push-notification.php Passed 13 tests
"Push Notifications for WP & AMP" version 1.31's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
134 characters long description:
Push Notification allow admin to automatically notify your audience when you have published new content on your site or custom notices
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
There were no executable files found in this plugin4,042 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 367 | 161 | 2,507 |
JavaScript | 9 | 155 | 80 | 1,216 |
PO File | 2 | 82 | 82 | 200 |
CSS | 3 | 4 | 5 | 119 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 19 | 20.21% |
▷ Public methods | 91 | 96.81% |
▷ Protected methods | 3 | 3.19% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/image/bell-icon.png | 7.09KB | 0.00KB | ▼ 100.00% |
assets/image/bell.png | 0.54KB | 0.44KB | ▼ 18.92% |