Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼33.63ms] Passed 4 tests
Analyzing server-side resources used by SAMURAI
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.28 ▲0.57 |
Dashboard /wp-admin | 3.01 ▼0.30 | 26.15 ▼29.48 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 25.21 ▼24.94 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 24.69 ▼69.70 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 24.44 ▼10.40 |
SAMURAI /wp-admin/plugins.php?page=samurai/samurai.php | 3.01 | 24.19 |
Server storage [IO: ▲1.04MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
samurai |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for SAMURAI
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.23 ▼0.30 | 1.86 ▼0.54 | 44.81 ▼2.46 |
Dashboard /wp-admin | 2,199 ▲22 | 5.57 ▼0.08 | 93.13 ▼6.72 | 42.12 ▼2.12 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.00 | 34.34 ▼2.22 | 36.47 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.12 ▲0.08 | 692.79 ▲26.74 | 68.15 ▲18.08 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.18 ▲0.03 | 98.07 ▼9.39 | 40.88 ▼4.08 |
SAMURAI /wp-admin/plugins.php?page=samurai/samurai.php | 1,055 | 2.01 | 24.75 | 55.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=samurai/samurai.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Plugin setting.), #2 (Example of HTML code (ukiyoe-0301-1) displayed in comment area on WordPress.), #3 (Example of HTML code (ukiyoe-0201-1) displayed in comment area on WordPress.), #4 (Example of HTML code (ukiyoe-0701-1) displayed in comment area on WordPress.)
samurai/samurai.php Passed 13 tests
The main PHP script in "SAMURAI" version 1.0.8 is automatically included on every request by WordPress
32 characters long description:
Extend the function of comments.
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
Success! There were no dangerous files found in this plugin246 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 13 | 40 | 158 |
PO File | 2 | 25 | 36 | 88 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
24 compressed PNG files occupy 0.31MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ukiyoe-0301-3.png | 13.87KB | 13.85KB | 0.15% |
img/ukiyoe-0501-2.png | 20.17KB | 20.15KB | 0.10% |
add.png | 4.23KB | 1.31KB | ▼ 69.03% |
img/myface-3.png | 6.69KB | 6.67KB | 0.29% |
img/ukiyoe-0701-1.png | 14.56KB | 14.54KB | 0.14% |