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: ▼11.29ms] Passed 4 tests
This is a short check of server-side resources used by Yotpo: Product & Photo Reviews for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.68 ▼2.69 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.06 ▼11.65 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.57 ▼3.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.01 ▼27.45 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.14 ▼2.66 |
Server storage [IO: ▲0.14MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wc_yotpo_just_installed |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Yotpo: Product & Photo Reviews for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.17 ▼0.18 | 1.77 ▼0.01 | 42.50 ▼0.32 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.09 | 90.85 ▲1.09 | 41.33 ▼0.28 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.04 | 33.52 ▼2.02 | 34.16 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,525 ▼3 | 23.61 ▲0.69 | 657.76 ▲18.00 | 50.97 ▼12.25 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.32 ▲0.15 | 97.06 ▼8.24 | 42.53 ▼2.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- wc_yotpo_just_installed
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/yotpo-social-reviews-for-woocommerce/wc_yotpo.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/yotpo-social-reviews-for-woocommerce/templates/wc-yotpo-settings.php:2
- > PHP Fatal error
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 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add descriptions for screenshots #10, #12, #2, #4, #6, #8 in yotpo-social-reviews-for-woocommerce/assets to your readme.txt
yotpo-social-reviews-for-woocommerce/wc_yotpo.php 77% from 13 tests
The entry point to "Yotpo: Product & Photo Reviews for WooCommerce" version 1.6.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("3.5.1" instead of "3.0")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 257 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("yotpo-social-reviews-for-woocommerce.php" instead of "wc_yotpo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,896 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 109 | 38 | 1,681 |
JavaScript | 4 | 18 | 0 | 127 |
CSS | 3 | 7 | 0 | 72 |
YAML | 1 | 4 | 2 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 3 | 7.32% |
▷ Public methods | 24 | 58.54% |
▷ Protected methods | 15 | 36.59% |
▷ Private methods | 2 | 4.88% |
Functions | 69 | |
▷ Named functions | 69 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
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/logo.png | 1.24KB | 0.62KB | ▼ 50.20% |
assets/images/logo_small.png | 1.45KB | 0.61KB | ▼ 57.65% |