Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.41ms] Passed 4 tests
Analyzing server-side resources used by Alsoviewed for woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.43 ▲0.16 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.40 ▼6.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.08 ▲6.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.90 ▲0.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.15 ▲4.57 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Alsoviewed for woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.32 ▼1.43 | 1.70 ▼0.22 | 44.04 ▼1.73 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.15 | 113.18 ▼4.37 | 40.18 ▼1.04 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.06 | 39.60 ▲5.24 | 35.52 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.19 ▲0.02 | 647.13 ▼33.50 | 54.82 ▼1.87 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.15 ▼0.09 | 95.40 ▼6.71 | 41.24 ▼6.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/alsoviewed-for-woocommerce/woocommerce-also-viewed.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/alsoviewed-for-woocommerce/views/product/tpl.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Preview), #2 (Admin settings)
alsoviewed-for-woocommerce/woocommerce-also-viewed.php 69% from 13 tests
This is the main PHP file of "Alsoviewed for woocommerce" version 1.1, 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:
- Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "4.0")
- Main file name: Name the main plugin file the same as the plugin slug ("alsoviewed-for-woocommerce.php" instead of "woocommerce-also-viewed.php")
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected2,829 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 222 | 24 | 1,366 |
CSS | 5 | 31 | 68 | 1,090 |
PHP | 5 | 166 | 71 | 327 |
PO File | 1 | 14 | 14 | 46 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bkg_rating.png | 0.74KB | 0.59KB | ▼ 20.69% |
css/grabbing.png | 0.11KB | 0.14KB | 0.00% |