Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▼4.33ms] Passed 4 tests
A check of server-side resources used by Woocommerce Easy View
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 45.20 ▲3.46 |
Dashboard /wp-admin | 3.91 ▲0.57 | 55.77 ▼8.34 |
Posts /wp-admin/edit.php | 3.96 ▲0.61 | 54.59 ▲3.21 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.57 | 87.56 ▼15.66 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 42.71 ▲3.92 |
New view /wp-admin/post-new.php?post_type=easy_search | 3.78 | 46.44 |
View /wp-admin/edit.php?post_type=easy_search | 3.81 | 41.97 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 78 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Woocommerce Easy View
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲177 | 13.81 ▼0.57 | 6.28 ▲4.22 | 41.79 ▲1.47 |
Dashboard /wp-admin | 2,251 ▲48 | 5.02 ▼0.87 | 108.14 ▲2.88 | 83.90 ▲38.93 |
Posts /wp-admin/edit.php | 2,153 ▲50 | 2.28 ▲0.29 | 36.10 ▼6.16 | 31.42 ▼3.93 |
Add New Post /wp-admin/post-new.php | 1,571 ▲23 | 23.35 ▲0.13 | 784.15 ▲179.11 | 35.49 ▼23.93 |
Media Library /wp-admin/upload.php | 1,447 ▲53 | 4.59 ▲0.42 | 99.30 ▲1.62 | 70.35 ▲27.51 |
New view /wp-admin/post-new.php?post_type=easy_search | 2,634 | 2.88 | 76.62 | 92.77 |
View /wp-admin/edit.php?post_type=easy_search | 1,133 | 2.21 | 32.34 | 29.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=easy_search
- > Notice in wp-content/plugins/woo-easy-view/includes/r_s_flibs.php+69
Undefined variable: _SESSION
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=easy_search
- > Notice in wp-content/plugins/woo-easy-view/includes/class-r_wev_search-define.php+461
Undefined variable: all_taxonomy
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-easy-view/public/partials/r_wev_search_public-display.php
- > /wp-content/plugins/woo-easy-view/admin/partials/r_wev_search-admin-display.php
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: A description for screenshot #3 is missing in woo-easy-view/assets to your readme.txt
woo-easy-view/r_wev_search.php 85% from 13 tests
The primary PHP file in "Woocommerce Easy View" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-easy-view.php" instead of "r_wev_search.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin6,329 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 465 | 637 | 2,954 |
CSS | 11 | 141 | 163 | 2,518 |
PO File | 5 | 315 | 315 | 838 |
JavaScript | 4 | 8 | 27 | 15 |
INI | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 368)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 62.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 511.00 |
Average method complexity | 9.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 368.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 2 | 2.99% |
▷ Public methods | 51 | 76.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 23.88% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
25 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/colorpicker/images/colorpicker_hex.png | 0.52KB | 0.42KB | ▼ 19.92% |
admin/images/sprite.png | 5.94KB | 2.82KB | ▼ 52.51% |
admin/js/colorpicker/images/colorpicker_submit.png | 0.96KB | 1.04KB | 0.00% |
admin/js/colorpicker/images/custom_hsb_b.png | 1.07KB | 0.82KB | ▼ 23.61% |
admin/js/colorpicker/images/colorpicker_hsb_s.png | 1.14KB | 0.80KB | ▼ 29.97% |