Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.71ms] Passed 4 tests
An overview of server-side resources used by Woocommerce - Recent purchased items
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 48.70 ▲6.94 |
Dashboard /wp-admin | 3.33 ▼0.02 | 46.88 ▼18.49 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.09 ▼0.38 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.32 ▼12.86 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.01 ▲4.90 |
Recent Purchased Items /wp-admin/admin.php?page=recentpurchaseditems | 3.22 | 41.93 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Woocommerce - Recent purchased items
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.29 | 1.88 ▲0.31 | 44.20 ▲3.43 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▲0.03 | 85.56 ▼5.87 | 39.46 ▼4.21 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▲0.06 | 35.72 ▼1.45 | 34.29 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.06 ▼0.21 | 723.82 ▲108.80 | 66.49 ▲5.89 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▲0.03 | 99.50 ▼9.30 | 45.73 ▲0.45 |
Recent Purchased Items /wp-admin/admin.php?page=recentpurchaseditems | 818 | 2.03 | 23.32 | 29.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/recent-purchased-items/includes/dashboard.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recent-purchased-items/recent-purchased-items.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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 your attention:
- Screenshots: These screenshots need descriptions #1, #2 in recent-purchased-items/assets to your readme.txt
recent-purchased-items/recent-purchased-items.php 85% from 13 tests
The principal PHP file in "Woocommerce - Recent purchased items" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.3" instead of "5.2")
- Requires PHP: The required version number must match the one declared in readme.txt ("5.3" instead of "7.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin128 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 51 | 59 | 128 |
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.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin