Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.35MB] [CPU: ▼6.65ms] Passed 4 tests
An overview of server-side resources used by Airship Web Notifications
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 44.99 ▲4.78 |
Dashboard /wp-admin | 3.70 ▲0.39 | 51.86 ▲0.03 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 47.97 ▼3.12 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 85.95 ▼28.30 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 40.54 ▲5.65 |
Web Notifications /wp-admin/options-general.php?page=ua-web-notification | 3.56 | 318.09 |
Add New /wp-admin/post-new.php?post_type=ua-push-notification | 3.61 | 46.65 |
All Web Notifications /wp-admin/edit.php?post_type=ua-push-notification | 3.60 | 41.70 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Airship Web Notifications
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 13.23 ▼1.46 | 1.87 ▲0.20 | 44.11 ▲5.09 |
Dashboard /wp-admin | 2,262 ▲74 | 4.86 ▼0.96 | 106.18 ▲8.48 | 44.78 ▲2.93 |
Posts /wp-admin/edit.php | 2,142 ▲53 | 2.02 ▼0.03 | 34.31 ▼8.69 | 35.36 ▼1.12 |
Add New Post /wp-admin/post-new.php | 6,260 ▲4,736 | 21.64 ▼1.42 | 831.51 ▲170.99 | 54.99 ▼10.32 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.23 ▲0.02 | 93.72 ▼12.55 | 41.98 ▼0.87 |
Web Notifications /wp-admin/options-general.php?page=ua-web-notification | 1,208 | 2.21 | 22.92 | 40.56 |
Add New /wp-admin/post-new.php?post_type=ua-push-notification | 1,628 | 3.63 | 60.61 | 32.04 |
All Web Notifications /wp-admin/edit.php?post_type=ua-push-notification | 1,114 | 1.97 | 30.83 | 29.58 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6, #7, #8 in urban-airship-web-push-notifications/assets to your readme.txt
urban-airship-web-push-notifications/ua-web-push-notifications.php 85% from 13 tests
The main file in "Airship Web Notifications" v. 1.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("urban-airship-web-push-notifications.php" instead of "ua-web-push-notifications.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,990 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 342 | 684 | 1,653 |
CSS | 2 | 37 | 0 | 169 |
JavaScript | 4 | 37 | 44 | 163 |
XML | 1 | 1 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 39.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.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 | 81 | |
▷ Static methods | 1 | 1.23% |
▷ Public methods | 74 | 91.36% |
▷ Protected methods | 7 | 8.64% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin