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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.80ms] Passed 4 tests
A check of server-side resources used by PUSH AGENT - WordPress plugin for Web Notification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.36 ▼4.04 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.41 ▲0.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.11 ▼1.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.93 ▼5.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.57 ▲0.72 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for PUSH AGENT - WordPress plugin for Web Notification
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲55 | 13.28 ▼1.03 | 14.21 ▲11.71 | 40.76 ▼2.70 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼0.04 | 99.35 ▼0.89 | 40.29 ▼2.55 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.03 | 42.39 ▲2.27 | 43.70 ▲6.49 |
Add New Post /wp-admin/post-new.php | 1,540 ▼2 | 18.29 ▼0.02 | 651.79 ▲26.35 | 55.43 ▼4.45 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.01 | 94.28 ▼3.59 | 40.88 ▲0.10 |
Push Agent /wp-admin/options-general.php?page=Push Agent | 849 | 2.01 | 22.23 | 27.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/push-agent/pushagent.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/push-agent/pushagent-admin.php:90
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
1 plugin tags: web push notification
push-agent/pushagent.php 85% from 13 tests
The main PHP script in "PUSH AGENT - WordPress plugin for Web Notification" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 436 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("push-agent.php" instead of "pushagent.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected154 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 35 | 13 | 154 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
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 | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.38MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 47.73KB | 15.32KB | ▼ 67.90% |
assets/screenshot-6.png | 16.31KB | 7.07KB | ▼ 56.65% |
assets/screenshot-4.png | 46.54KB | 17.15KB | ▼ 63.15% |
assets/screenshot-2.png | 19.38KB | 6.26KB | ▼ 67.70% |
assets/screenshot-3.png | 14.82KB | 4.41KB | ▼ 70.27% |