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 gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.87ms] Passed 4 tests
This is a short check of server-side resources used by Flash Notification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.30 ▼2.43 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.67 ▼6.69 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.58 ▼0.50 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.34 ▼25.85 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.09 ▲2.69 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Flash Notification: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲154 | 13.89 ▼0.49 | 8.66 ▲6.02 | 44.06 ▼2.45 |
Dashboard /wp-admin | 2,214 ▲26 | 4.93 ▲0.01 | 106.54 ▲4.15 | 77.33 ▲30.90 |
Posts /wp-admin/edit.php | 2,100 ▲14 | 2.01 ▼0.00 | 38.81 ▲0.80 | 37.91 ▲2.88 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.72 ▲6.24 | 716.10 ▲51.08 | 51.05 ▼0.42 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.15 ▼0.03 | 108.74 ▲0.19 | 45.50 ▼3.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 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 50% 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
Please fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flash-notification/views/styling.php:95
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/flash-notification/admin/settings-content.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flash-notification/flash-notification-class.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_print_styles() in wp-content/plugins/flash-notification/views/content-frontend.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/flash-notification/admin/dashboard.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_print_styles() in wp-content/plugins/flash-notification/admin/content-frontend/search-form.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/flash-notification/admin/settings-display.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: floating bar, message, attention bar, notice, notification bar...
flash-notification/flash-notification.php 92% from 13 tests
The primary PHP file in "Flash Notification" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 179 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,019 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 271 | 111 | 570 |
CSS | 3 | 35 | 21 | 385 |
JavaScript | 3 | 22 | 2 | 52 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/flash-ico.png | 3.14KB | 0.67KB | ▼ 78.62% |
admin/assets/img/announcement.png | 1.39KB | 0.92KB | ▼ 33.83% |
admin/assets/img/boost.png | 3.25KB | 0.82KB | ▼ 74.65% |
admin/assets/img/bl-boost.png | 3.34KB | 0.82KB | ▼ 75.35% |
admin/assets/img/flash.png | 0.51KB | 0.67KB | 0.00% |