Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.85ms] Passed 4 tests
This is a short check of server-side resources used by Customers who viewed this also viewed that - WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.66 ▲0.10 |
Dashboard /wp-admin | 3.39 ▲0.05 | 42.85 ▼18.02 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 44.92 ▼2.09 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 96.92 ▲2.80 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.66 ▲0.60 |
Customers Also Viewed /wp-admin/admin.php?page=conobe-customers-also-viewed | 3.28 | 31.05 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Customers who viewed this also viewed that - WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.31 ▼0.31 | 1.93 ▼0.14 | 43.60 ▼4.04 |
Dashboard /wp-admin | 2,192 ▲15 | 5.56 ▼0.06 | 82.02 ▼11.68 | 41.87 ▲2.04 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.03 | 39.26 ▲2.99 | 34.56 ▼1.78 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.64 ▲0.53 | 606.72 ▼72.73 | 50.42 ▼4.67 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.20 ▲0.01 | 98.48 ▲0.22 | 43.52 ▼1.44 |
Customers Also Viewed /wp-admin/admin.php?page=conobe-customers-also-viewed | 973 | 1.99 | 21.19 | 37.57 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function benhall14\\get_option() in wp-content/plugins/customers-who-viewed-this-also-viewed-that-woocommerce/lib/ConobeWoocommerceAlsoViewed.php:92
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: product recommendation, related products, woocommerce
customers-who-viewed-this-also-viewed-that-woocommerce/woocommerce-customers-also-viewed.php 77% from 13 tests
Analyzing the main PHP file in "Customers who viewed this also viewed that - WooCommerce" version 1.1
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("customers-who-viewed-this-also-viewed-that-woocommerce.php" instead of "woocommerce-customers-also-viewed.php")
- Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected523 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 134 | 284 | 447 |
CSS | 1 | 9 | 0 | 76 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 62.00 |
▷ Minimum class complexity | 62.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin