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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.40ms] Passed 4 tests
A check of server-side resources used by Ninja Toastify
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.64 ▲3.03 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.96 ▼1.70 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.02 ▼0.49 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 89.42 ▼6.43 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 43.86 ▲10.04 |
Server storage [IO: ▲4.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Ninja Toastify
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲205 | 14.33 ▼0.04 | 27.90 ▲26.12 | 51.14 ▲9.90 |
Dashboard /wp-admin | 2,217 ▲28 | 5.86 ▲0.92 | 100.66 ▼6.29 | 78.34 ▲35.80 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 1.99 ▼0.01 | 39.49 ▼2.94 | 39.91 ▲6.34 |
Add New Post /wp-admin/post-new.php | 1,678 ▲159 | 22.19 ▼1.18 | 583.55 ▼68.93 | 45.17 ▼23.33 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.22 ▲0.07 | 97.57 ▲4.11 | 73.83 ▲32.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #1 in ninja-toastify/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
ninja-toastify/ninja-toastify.php 92% from 13 tests
The entry point to "Ninja Toastify" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected4,618 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,006 | 1,257 | 4,261 |
JSX | 1 | 3 | 4 | 168 |
PHP | 6 | 25 | 64 | 142 |
Sass | 1 | 3 | 0 | 41 |
CSS | 3 | 0 | 14 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 6 | |
▷ Named functions | 6 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 2.31MB with 0.96MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 877.01KB | 351.56KB | ▼ 59.91% |
assets/logo-min.png | 0.39KB | 0.34KB | ▼ 13.40% |
assets/screenshot-1.png | 1,485.41KB | 719.45KB | ▼ 51.57% |