Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.74ms] Passed 4 tests
A check of server-side resources used by Infinite Notification - Sales Notification Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.83 ▼10.00 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.09 ▼2.19 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.28 ▼2.75 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.20 ▼20.02 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.14 ▼1.79 |
Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Infinite Notification - Sales Notification Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.25 ▼0.48 | 2.03 ▲0.42 | 41.97 ▼1.83 |
Dashboard /wp-admin | 2,214 ▲40 | 5.61 ▲0.09 | 84.96 ▼18.64 | 39.80 ▼2.95 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▲0.06 | 40.48 ▲5.40 | 39.33 ▲1.51 |
Add New Post /wp-admin/post-new.php | 1,377 ▼149 | 17.13 ▼6.50 | 566.28 ▼136.27 | 50.61 ▼12.91 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.27 ▲0.03 | 101.59 ▼8.15 | 46.68 ▲2.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-notification/include/functions.php:124
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-notification/include/settings.php:5
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% 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: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.png. Screenshots are stored in the /assets directory.), #2 (This is the second screen shot from the frontend screenshot-2.png)
infinite-notification/infinite-notification.php Passed 13 tests
The primary PHP file in "Infinite Notification - Sales Notification Plugin" version 1.0.2 is used by WordPress to initiate all plugin functionality
25 characters long description:
Sales Notification Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected444 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 45 | 10 | 249 |
CSS | 1 | 4 | 0 | 132 |
JavaScript | 2 | 16 | 0 | 63 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 18.21KB | 7.52KB | ▼ 58.71% |
(invalid) assets/screenshot-1.png | 42.21KB | 0.00KB | ▼ 100.00% |