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.05MB] [CPU: ▼0.65ms] Passed 4 tests
A check of server-side resources used by CleverPush
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 35.76 ▼3.35 |
Dashboard /wp-admin | 3.36 ▲0.05 | 49.79 ▲4.16 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 53.71 ▲3.53 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.11 ▼6.93 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.09 ▲4.84 |
CleverPush /wp-admin/options-general.php?page=cleverpush_options | 3.23 | 40.34 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options |
---|
cleverpush_notification_error |
theysaidso_admin_options |
widget_theysaidso_widget |
cleverpush_notification_result |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
CleverPush: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲67 | 14.37 ▲0.09 | 1.96 ▲0.25 | 45.75 ▲2.05 |
Dashboard /wp-admin | 2,206 ▲26 | 5.49 ▼0.16 | 92.48 ▼8.53 | 42.17 ▼3.78 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.01 ▲0.06 | 41.43 ▲0.14 | 38.11 ▲0.22 |
Add New Post /wp-admin/post-new.php | 6,232 ▲4,706 | 26.02 ▲3.08 | 835.28 ▲146.59 | 53.96 ▼5.63 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.19 ▲0.02 | 104.89 ▲0.37 | 44.07 ▲0.83 |
CleverPush /wp-admin/options-general.php?page=cleverpush_options | 982 | 1.81 | 25.70 | 31.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- cleverpush_notification_error
- cleverpush_notification_result
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cleverpush/cleverpush-worker.js.php
- > /wp-content/plugins/cleverpush/cleverpush-feed.php
- > /wp-content/plugins/cleverpush/cleverpush-amp.js.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/cleverpush/cleverpush-story.php on line 4
- > PHP Notice
Trying to get property 'post' of non-object in wp-content/plugins/cleverpush/cleverpush-story.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/cleverpush/cleverpush-story.php:5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: web push, woocommerce, push notifications, browser notifications
cleverpush/cleverpush.php Passed 13 tests
The primary PHP file in "CleverPush" version 1.9.5 is used by WordPress to initiate all plugin functionality
100 characters long description:
Send push notifications to your users right through your website. Visit CleverPush for more details.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,144 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 310 | 36 | 1,791 |
PO File | 1 | 55 | 57 | 148 |
HTML | 2 | 12 | 8 | 129 |
CSS | 1 | 5 | 0 | 42 |
JavaScript | 1 | 2 | 0 | 25 |
JSON | 2 | 0 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 76.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 5.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 40 | |
▷ Static methods | 3 | 7.50% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 5.81KB | 2.34KB | ▼ 59.75% |
assets/icon-256x256.png | 10.81KB | 3.67KB | ▼ 66.04% |