Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▼3.77ms] Passed 4 tests
A check of server-side resources used by WPC Frequently Bought Together for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.66 | 37.23 ▼9.61 |
Dashboard /wp-admin | 4.02 ▲0.68 | 48.69 ▼11.75 |
Posts /wp-admin/edit.php | 4.07 ▲0.72 | 48.45 ▲0.99 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 93.03 ▲11.57 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 37.31 ▲5.30 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 4.06 | 33.73 |
About /wp-admin/admin.php?page=wpclever | 3.85 | 38.33 |
Server storage [IO: ▲0.63MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WPC Frequently Bought Together for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲120 | 14.13 ▼0.22 | 1.49 ▼0.46 | 38.98 ▼4.76 |
Dashboard /wp-admin | 2,257 ▲79 | 5.55 ▼0.11 | 96.41 ▼14.26 | 75.08 ▲32.83 |
Posts /wp-admin/edit.php | 2,181 ▲78 | 2.01 ▲0.05 | 39.73 ▲2.00 | 34.83 ▲2.66 |
Add New Post /wp-admin/post-new.php | 1,753 ▲227 | 22.16 ▼1.16 | 619.22 ▲10.11 | 42.07 ▼9.47 |
Media Library /wp-admin/upload.php | 1,477 ▲80 | 4.12 ▼0.08 | 94.93 ▼1.75 | 84.81 ▲42.14 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,741 | 2.13 | 39.19 | 62.48 |
About /wp-admin/admin.php?page=wpclever | 1,402 | 2.23 | 35.30 | 33.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3 in woo-bought-together/assets to your readme.txt
woo-bought-together/wpc-frequently-bought-together.php 92% from 13 tests
The main PHP script in "WPC Frequently Bought Together for WooCommerce" version 6.2.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-bought-together.php" instead of "wpc-frequently-bought-together.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin8,021 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 508 | 97 | 2,964 |
PO File | 7 | 853 | 1,215 | 2,173 |
CSS | 5 | 368 | 149 | 1,740 |
JavaScript | 4 | 246 | 63 | 1,115 |
SVG | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 136.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 498.00 |
Average method complexity | 6.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 8 | 8.33% |
▷ Public methods | 96 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 10 | |
▷ Global constants | 10 | 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
No PNG files were detected