Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.34ms] Passed 4 tests
An overview of server-side resources used by S2 Wishlist for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 42.39 ▲0.87 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.93 ▼5.61 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.17 ▼1.92 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 96.14 ▼4.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.54 ▼1.49 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for S2 Wishlist for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.32 ▼1.27 | 2.02 ▼0.22 | 43.74 ▲3.27 |
Dashboard /wp-admin | 2,212 ▲24 | 5.80 ▼0.10 | 102.06 ▼12.89 | 40.51 ▼1.27 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.01 ▲0.02 | 35.35 ▼5.63 | 37.15 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 18.43 ▲0.93 | 643.50 ▼33.15 | 89.05 ▲24.18 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.33 ▲0.13 | 99.26 ▼6.86 | 41.90 ▼3.86 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
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 no errors were found, this is by no means 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid url: ""
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in s2-wishlist-for-woocommerce/assets to your readme.txt
s2-wishlist-for-woocommerce/init.php 69% from 13 tests
The main file in "S2 Wishlist for WooCommerce" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 166 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("s2-wishlist-for-woocommerce.php" instead of "init.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.3" instead of "4.7.0")
- 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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,671 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 909 | 63 | 2,298 |
PHP | 22 | 442 | 634 | 1,108 |
CSS | 4 | 39 | 15 | 247 |
SVG | 2 | 0 | 2 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 9.62 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 8 | 17.02% |
▷ Public methods | 46 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.13% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wishlist.png | 0.88KB | 0.44KB | ▼ 50.33% |
assets/images/selected-wishlist.png | 0.75KB | 0.42KB | ▼ 44.52% |