Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.08MB] [CPU: ▼14.12ms] Passed 4 tests
Server-side resources used by Sakura Network
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 39.72 ▼0.05 |
Dashboard /wp-admin | 3.51 ▲0.16 | 49.82 ▼13.36 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 43.70 ▼2.61 |
Add New Post /wp-admin/post-new.php | 5.02 ▼0.87 | 55.28 ▼39.46 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 33.49 ▼1.05 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_sakura_widget |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Sakura Network
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 14.48 ▲0.18 | 1.95 ▲0.18 | 40.05 ▼6.96 |
Dashboard /wp-admin | 2,218 ▲30 | 4.87 ▼1.03 | 96.64 ▼18.85 | 38.57 ▼9.17 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▲0.03 | 35.91 ▲0.38 | 31.70 ▼5.18 |
Add New Post /wp-admin/post-new.php | 6,364 ▲4,831 | 27.58 ▲4.35 | 891.52 ▲215.33 | 58.69 ▼1.98 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.24 ▼0.02 | 98.61 ▲3.21 | 41.70 ▼2.07 |
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
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_sakura_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: e-commerce, sales, woo commerce, shop, sell...
sakura-network/sakura.php 69% from 13 tests
This is the main PHP file of "Sakura Network" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
- Requires at least: Required version does not match the one declared in readme.txt ("5.4" instead of "2.2")
- Main file name: The principal plugin file should be the same as the plugin slug ("sakura-network.php" instead of "sakura.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin985 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 118 | 174 | 971 |
JavaScript | 3 | 1 | 23 | 12 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 27.75 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 48 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.00% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin