Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/wp-e-commerce-recommendations/wpec-recommendations.php+690
include_once(/wp-content/plugins/wp-e-commerce/wpsc-admin/settings-page.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.95ms] Passed 4 tests
A check of server-side resources used by WP e-Commerce Recommendations
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 44.49 ▲2.10 |
Dashboard /wp-admin | 3.31 ▲0.00 | 53.60 ▼3.79 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.42 ▼8.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.30 ▼10.06 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.84 ▲4.22 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP e-Commerce Recommendations
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▲0.00 | 1.82 ▲0.14 | 44.36 ▼3.81 |
Dashboard /wp-admin | 2,198 ▲18 | 5.60 ▼0.09 | 83.89 ▼9.16 | 39.06 ▼3.72 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.04 | 36.25 ▲1.11 | 31.94 ▼7.92 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.15 ▲5.48 | 661.53 ▼33.30 | 55.03 ▼10.83 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▲0.01 | 103.66 ▲3.47 | 46.04 ▼0.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-e-commerce-recommendations/wpec-recommendations.php:56
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% 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
4 plugin tags: wordpress, e-commerce, recommendations, retail
wp-e-commerce-recommendations/wpec-recommendations.php 92% from 13 tests
"WP e-Commerce Recommendations" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-e-commerce-recommendations.php" instead of "wpec-recommendations.php")
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
Success! There were no dangerous files found in this plugin1,956 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 216 | 115 | 1,306 |
CSS | 2 | 42 | 61 | 598 |
SVG | 4 | 0 | 4 | 52 |
PHP code Passed 2 tests
This is a short overview 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.25 |
Average class complexity | 24.67 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 8.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/console.png | 53.06KB | 16.68KB | ▼ 68.57% |
img/ntoklo_logo_2x.png | 7.58KB | 4.04KB | ▼ 46.73% |
img/ntoklo_logo.png | 4.89KB | 2.92KB | ▼ 40.26% |