Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼4.22ms] Passed 4 tests
An overview of server-side resources used by Doshii
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 43.29 ▲6.26 |
Dashboard /wp-admin | 3.58 ▲0.27 | 48.28 ▼4.92 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 46.82 ▼2.11 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 85.20 ▼11.09 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 36.87 ▲1.26 |
Doshii Settings /wp-admin/options-general.php?page=doshii-settings | 3.44 | 35.90 |
Server storage [IO: ▲0.22MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_doshii_menu |
wp_doshii_product_option |
wp_doshii_product_variant |
wp_doshii_product |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Doshii
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.01 | 1.85 ▲0.28 | 44.46 ▲4.50 |
Dashboard /wp-admin | 2,199 ▲25 | 5.50 ▼0.26 | 81.84 ▼4.68 | 36.64 ▼6.09 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▲0.03 | 32.71 ▼1.36 | 31.92 ▼4.58 |
Add New Post /wp-admin/post-new.php | 1,537 ▲7 | 18.10 ▼5.02 | 607.48 ▼72.30 | 79.78 ▲16.29 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.04 | 104.36 ▲5.11 | 48.47 ▲4.88 |
Doshii Settings /wp-admin/options-general.php?page=doshii-settings | 931 | 2.00 | 23.87 | 26.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_doshii_menu
- wp_doshii_product_option
- wp_doshii_product
- wp_doshii_product_variant
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=doshii-settings
- > Notice in wp-content/plugins/doshii/include/settings.php+299
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/doshii/doshii_function.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/doshii/include/woo-doshii-ajax.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (None)
doshii/doshii_function.php 92% from 13 tests
The main PHP file in "Doshii" ver. 2.5.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("doshii.php" instead of "doshii_function.php")
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
Success! There were no dangerous files found in this plugin1,765 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 218 | 150 | 1,765 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
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 | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/assets/images/doshii_logo.png | 52.03KB | 17.68KB | ▼ 66.01% |