Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.75ms] Passed 4 tests
An overview of server-side resources used by Unagi
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.79 ▼4.32 |
Dashboard /wp-admin | 3.35 ▲0.00 | 45.78 ▼14.48 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.54 ▲1.97 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.33 ▼10.04 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.31 ▼2.16 |
Notifications /wp-admin/index.php?page=notification | 3.23 | 30.25 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Unagi
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.29 ▼1.08 | 1.90 ▲0.19 | 40.37 ▼0.43 |
Dashboard /wp-admin | 2,204 ▲16 | 5.80 ▼0.09 | 100.03 ▼1.03 | 38.36 ▼5.46 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.02 | 39.15 ▲3.24 | 34.81 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.51 ▼5.52 | 593.69 ▼68.20 | 47.54 ▼3.82 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.21 ▲0.08 | 92.32 ▼14.18 | 42.51 ▼5.38 |
Notifications /wp-admin/index.php?page=notification | 762 | 2.02 | 25.71 | 25.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 shallow check for browser errors
Everything seems fine on the user side
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
3 plugin tags: admin notice, notification, nags
unagi/plugin.php 92% from 13 tests
The primary PHP file in "Unagi" version 0.1.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("unagi.php" instead of "plugin.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
There were no executable files found in this plugin218 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 73 | 149 | 203 |
CSS | 11 | 10 | 32 | 15 |
JavaScript | 2 | 0 | 2 | 0 |
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.28 |
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 | 6 | |
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 | 17 | |
▷ Named functions | 14 | 82.35% |
▷ Anonymous functions | 3 | 17.65% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin