Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼159.37ms] Passed 4 tests
This is a short check of server-side resources used by Recently Viewed Products for Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 24.16 ▲2.31 |
Dashboard /wp-admin | 3.06 ▼0.00 | 31.12 ▼5.00 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 31.15 ▼0.41 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 66.78 ▼632.61 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 24.15 ▲0.54 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Recently Viewed Products for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 15.95 ▼0.03 | 4.94 ▼0.01 | 75.77 ▼1.35 |
Dashboard /wp-admin | 2,933 ▲41 | 6.12 ▼0.01 | 116.94 ▼13.59 | 167.82 ▼9.21 |
Posts /wp-admin/edit.php | 2,740 ▲34 | 3.22 ▼0.01 | 64.49 ▼14.72 | 140.20 ▼50.52 |
Add New Post /wp-admin/post-new.php | 3,821 ▲5 | 19.14 ▼0.21 | 470.41 ▲19.21 | 167.49 ▼1.72 |
Media Library /wp-admin/upload.php | 1,749 ▼3 | 5.47 ▼0.03 | 138.11 ▼4.90 | 182.17 ▼4.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/recently-viewed-products-woocommerce/woo-recently-viewed-products.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid URI ("")
recently-viewed-products-woocommerce/woo-recently-viewed-products.php 77% from 13 tests
The entry point to "Recently Viewed Products for Woocommerce" version 1.0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please keep the plugin description shorter than 140 characters (currently 231 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("recently-viewed-products-woocommerce.php" instead of "woo-recently-viewed-products.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,331 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 849 | 45 | 2,159 |
PHP | 9 | 94 | 164 | 381 |
CSS | 3 | 101 | 7 | 356 |
Sass | 2 | 27 | 5 | 262 |
LESS | 1 | 11 | 5 | 152 |
SVG | 1 | 1 | 0 | 13 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin