Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.51ms] Passed 4 tests
An overview of server-side resources used by WP Flash News Notification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.71 ▼0.19 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.47 ▼1.12 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.66 ▼6.36 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 101.20 ▲0.19 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.69 ▼2.35 |
WP Post Notification /wp-admin/options-general.php?page=wpn | 3.28 | 34.99 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Flash News Notification
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲201 | 13.59 ▼0.63 | 5.32 ▲3.24 | 46.12 ▼1.60 |
Dashboard /wp-admin | 2,224 ▲36 | 5.86 ▼0.03 | 103.43 ▼12.08 | 43.79 ▲1.11 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 1.98 ▼0.00 | 39.45 ▲2.60 | 31.98 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,553 ▲20 | 18.68 ▼4.86 | 657.65 ▼20.10 | 59.06 ▲5.88 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.21 ▼0.00 | 105.84 ▼10.61 | 46.15 ▼2.00 |
WP Post Notification /wp-admin/options-general.php?page=wpn | 1,124 | 2.05 | 28.16 | 40.20 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpn
- > Warning in wp-content/plugins/wp-post-notification/lib/settings.php+63
in_array() expects parameter 2 to be array, bool given
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/wp-post-notification/lib/settings.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please describe screenshot #2 in wp-post-notification/assets to your readme.txt
- Screenshots: Screenshot #5 (Front-end Preview) image not found
wp-post-notification/wp-post-notification.php Passed 13 tests
"WP Flash News Notification" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
29 characters long description:
Show blog post in a smart way
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
Good job! No executable or dangerous file extensions detected460 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 45 | 96 | 433 |
CSS | 2 | 2 | 4 | 16 |
JavaScript | 1 | 0 | 1 | 11 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 51.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.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 | 14 | |
▷ Static methods | 4 | 28.57% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close-lf.png | 2.85KB | 0.27KB | ▼ 90.62% |