Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.65MB] [CPU: ▼19.03ms] Passed 4 tests
Analyzing server-side resources used by Adwised Web Push Notification
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 39.22 ▼5.65 |
Dashboard /wp-admin | 3.35 ▲0.04 | 55.27 ▲0.09 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.26 ▼6.20 |
Add New Post /wp-admin/post-new.php | 3.16 ▼2.73 | 39.54 ▼64.34 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 42.18 ▲3.61 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Adwised Web Push Notification
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲61 | 13.21 ▼1.59 | 1.58 ▼0.66 | 47.05 ▲3.47 |
Dashboard /wp-admin | 2,253 ▲50 | 4.91 ▼0.94 | 120.15 ▼2.47 | 103.45 ▲52.35 |
Posts /wp-admin/edit.php | 2,135 ▲56 | 2.05 ▼0.00 | 37.36 ▼1.60 | 43.00 ▲7.71 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.06 ▼0.42 | 766.45 ▲77.15 | 69.45 ▲7.03 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.26 ▲0.03 | 107.76 ▲7.21 | 95.52 ▲53.44 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/adwised/views/sidebar.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/adwised/views/dashboard-notices.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/adwised/adwised.php:32
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/adwised/views/settings.php:78
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: web push, notification, firebase, push, push notifications...
adwised/adwised.php 85% from 13 tests
The principal PHP file in "Adwised Web Push Notification" v. 2.5.7 is loaded by WordPress automatically on each request
You should first fix the following items:
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,282 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 106 | 105 | 2,147 |
JavaScript | 3 | 15 | 9 | 135 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
adwisedicon.png | 1.15KB | 0.95KB | ▼ 17.42% |
assets/icon.png | 41.56KB | 17.19KB | ▼ 58.65% |
assets/screenshot-1.PNG | 23.66KB | 9.68KB | ▼ 59.10% |
assets/adwisedicon.png | 1.15KB | 0.95KB | ▼ 17.42% |
screenshot-1.PNG | 52.34KB | 22.00KB | ▼ 57.97% |