Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.45ms] Passed 4 tests
Server-side resources used by Web Push Notifications by Aimtell
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.56 ▼1.27 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.68 ▲0.65 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.89 ▲3.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.63 ▼20.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.73 ▼0.78 |
Server storage [IO: ▲0.45MB] [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: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Web Push Notifications by Aimtell
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 14.45 ▲0.23 | 1.92 ▲0.21 | 46.20 ▲4.71 |
Dashboard /wp-admin | 2,215 ▲29 | 4.93 ▲0.00 | 97.10 ▼12.76 | 67.52 ▲24.01 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▼0.03 | 33.82 ▼2.76 | 30.97 ▲2.19 |
Add New Post /wp-admin/post-new.php | 1,524 ▼9 | 23.28 ▲0.10 | 687.92 ▼14.04 | 53.01 ▼1.65 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.21 ▼0.01 | 99.36 ▼10.26 | 70.93 ▲24.90 |
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_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/aimtell-web-push-notifications/templates/login.php
- > /wp-content/plugins/aimtell-web-push-notifications/assets/js/aimtell-worker.js.php
- > /wp-content/plugins/aimtell-web-push-notifications/templates/addSite.php
- > /wp-content/plugins/aimtell-web-push-notifications/templates/register.php
- > /wp-content/plugins/aimtell-web-push-notifications/templates/viewSite.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant AIMTELL_URL - assumed 'AIMTELL_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/aimtell-web-push-notifications/templates/addSite.php on line 4
- > PHP Notice
Undefined variable: aimtell_auth_token in wp-content/plugins/aimtell-web-push-notifications/templates/viewSite.php on line 20
- > PHP Warning
Use of undefined constant AIMTELL_URL - assumed 'AIMTELL_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/aimtell-web-push-notifications/templates/addSite.php on line 12
- > PHP Warning
Use of undefined constant AIMTELL_URL - assumed 'AIMTELL_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/aimtell-web-push-notifications/templates/register.php on line 4
- > PHP Warning
Use of undefined constant AIMTELL_URL - assumed 'AIMTELL_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/aimtell-web-push-notifications/templates/login.php on line 4
- > PHP Notice
Undefined variable: aimtell_auth_token in wp-content/plugins/aimtell-web-push-notifications/templates/viewSite.php on line 12
- > PHP Warning
Use of undefined constant AIMTELL_CURSITE_URL - assumed 'AIMTELL_CURSITE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/aimtell-web-push-notifications/templates/addSite.php on line 21
- > PHP Warning
Use of undefined constant AIMTELL_URL - assumed 'AIMTELL_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/aimtell-web-push-notifications/templates/addSite.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/aimtell-web-push-notifications/aimtell.php:24
- > PHP Warning
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 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #6, #6 in aimtell-web-push-notifications/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
aimtell-web-push-notifications/aimtell.php 85% from 13 tests
The primary PHP file in "Web Push Notifications by Aimtell" version 1.63 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aimtell-web-push-notifications.php" instead of "aimtell.php")
- Description: The description should be shorter than 140 characters (currently 269 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,261 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 145 | 83 | 850 |
JavaScript | 1 | 62 | 66 | 239 |
CSS | 1 | 43 | 10 | 169 |
JSON | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 26.18KB | 4.43KB | ▼ 83.07% |
assets/images/logo_white.png | 28.32KB | 3.44KB | ▼ 87.85% |
assets/images/select2.png | 0.60KB | 0.99KB | 0.00% |
assets/images/aimtell_icon.png | 20.83KB | 0.57KB | ▼ 97.25% |
assets/images/droparrows.png | 1.08KB | 0.24KB | ▼ 78.20% |