Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼138.95ms] Passed 4 tests
Server-side resources used by Wishlist ShibainuIT
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 45.47 ▲21.52 |
Dashboard /wp-admin | 3.13 ▲0.08 | 49.96 ▼1.97 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 51.15 ▲1.94 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 101.39 ▼552.91 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 35.86 ▼2.85 |
Wishlist - Shibainu IT /wp-admin/options-general.php?page=sit-wishlist-setting | 3.04 | 40.46 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Wishlist ShibainuIT: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,784 ▲188 | 16.05 ▲0.57 | 12.36 ▲3.98 | 59.97 ▲6.90 |
Dashboard /wp-admin | 2,978 ▲47 | 6.13 ▲0.12 | 145.63 ▲1.35 | 107.55 ▼14.33 |
Posts /wp-admin/edit.php | 2,747 ▲8 | 2.70 ▼0.00 | 69.54 ▼3.48 | 94.05 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,687 ▲4 | 18.31 ▼0.22 | 360.39 ▼61.13 | 118.81 ▼8.31 |
Media Library /wp-admin/upload.php | 1,818 ▲14 | 5.01 ▼0.02 | 169.94 ▲15.99 | 130.29 ▲7.22 |
Wishlist - Shibainu IT /wp-admin/options-general.php?page=sit-wishlist-setting | 1,110 | 2.10 | 62.85 | 76.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wishlist-shibainuit/templates/before-add-btn.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wishlist-shibainuit/inc/add-to-wishlist-btn.php:7
- > PHP Notice
Undefined variable: sit_wishlist_ids in wp-content/plugins/wishlist-shibainuit/templates/wishlist-render.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wishlist-shibainuit/inc/settings-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function sit_get_wishlist_array() in wp-content/plugins/wishlist-shibainuit/templates/sit-my-wishlist-modal.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wishlist-shibainuit/inc/add-endpoint.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wishlist-shibainuit/inc/add-modal-frontend.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/wishlist-shibainuit/templates/wishlist-render.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wishlist-shibainuit/templates/after-add-btn.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wishlist-shibainuit/inc/ajax.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce wishlist, shibainuit wishlist, shibainu, custom wishlist, wishlist
wishlist-shibainuit/wishlist-shibainuit.php 92% from 13 tests
This is the main PHP file of "Wishlist ShibainuIT" version 2.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
No dangerous file extensions were detected769 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 148 | 72 | 465 |
CSS | 1 | 21 | 1 | 152 |
JavaScript | 2 | 19 | 16 | 150 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 15 | 88.24% |
▷ Anonymous functions | 2 | 11.76% |
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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 7.34KB | 7.57KB | 0.00% |