Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼2.43ms] Passed 4 tests
A check of server-side resources used by WPC Custom Related Products for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 42.77 ▲7.61 |
Dashboard /wp-admin | 3.55 ▲0.24 | 48.69 ▲1.04 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 46.87 ▼3.45 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 85.53 ▼6.84 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 34.22 ▼0.48 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.44 | 31.84 |
About /wp-admin/admin.php?page=wpclever | 3.44 | 31.86 |
Server storage [IO: ▲0.18MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WPC Custom Related Products for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲105 | 14.29 ▼0.36 | 1.75 ▲0.11 | 44.07 ▲5.96 |
Dashboard /wp-admin | 2,275 ▲95 | 5.54 ▼0.12 | 84.65 ▲0.75 | 61.28 ▲18.60 |
Posts /wp-admin/edit.php | 2,184 ▲84 | 2.06 ▲0.11 | 34.34 ▼4.64 | 31.51 ▼9.47 |
Add New Post /wp-admin/post-new.php | 1,754 ▲228 | 22.17 ▼1.29 | 759.39 ▲128.36 | 70.20 ▲10.58 |
Media Library /wp-admin/upload.php | 1,477 ▲77 | 4.24 ▲0.07 | 95.51 ▼4.18 | 73.93 ▲27.43 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,741 | 2.15 | 36.84 | 63.62 |
About /wp-admin/admin.php?page=wpclever | 1,396 | 2.14 | 32.04 | 34.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2 in wpc-custom-related-products/assets to your readme.txt
wpc-custom-related-products/wpc-custom-related-products.php Passed 13 tests
The principal PHP file in "WPC Custom Related Products for WooCommerce" v. 3.0.7 is loaded by WordPress automatically on each request
90 characters long description:
WPC Custom Related Products allows you to choose custom related products for each product.
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 plugin3,118 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 298 | 147 | 1,448 |
PHP | 5 | 168 | 29 | 1,280 |
JavaScript | 3 | 63 | 11 | 361 |
SVG | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 49.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 5.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 45 | |
▷ Static methods | 5 | 11.11% |
▷ Public methods | 45 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin