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.01MB] [CPU: ▼7.16ms] Passed 4 tests
An overview of server-side resources used by Recently Purchased Products For Woo
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.84 ▼3.91 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.08 ▼7.46 |
Posts /wp-admin/edit.php | 3.38 ▲0.01 | 45.77 ▼2.80 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.01 | 82.94 ▼14.47 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 37.38 ▲4.94 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Recently Purchased Products For Woo: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.21 ▼0.14 | 1.62 ▼0.13 | 37.73 ▼6.70 |
Dashboard /wp-admin | 2,201 ▲24 | 5.61 ▲0.06 | 97.30 ▲2.66 | 43.52 ▼4.51 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.00 ▼0.02 | 39.04 ▼0.75 | 39.28 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,532 ▲3 | 23.12 ▼0.08 | 613.72 ▲1.93 | 57.37 ▲9.15 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.16 ▼0.04 | 102.87 ▲3.52 | 41.45 ▼0.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: recent orders, purchases, woocommerce, recent purchases, last purchases
recently-purchased-products-for-woo/recently-purchased-products-for-woo.php 85% from 13 tests
The principal PHP file in "Recently Purchased Products For Woo" v. 1.0.6 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,767 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 696 | 7 | 909 |
PHP | 7 | 273 | 283 | 813 |
JavaScript | 3 | 14 | 54 | 32 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 49.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 13.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
1 compressed PNG file occupies 0.05MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/image/no-image.png | 47.02KB | 49.79KB | 0.00% |