Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.19ms] Passed 4 tests
Server-side resources used by WC Cancel Order
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.67 ▼4.72 |
Dashboard /wp-admin | 3.42 ▲0.12 | 47.13 ▲0.02 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 49.51 ▼0.46 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 94.22 ▼2.20 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.63 ▼1.39 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
WC Cancel Order: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.17 ▼1.20 | 1.76 ▲0.01 | 39.50 ▼8.70 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲0.03 | 104.92 ▲4.69 | 40.17 ▲0.72 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.06 ▲0.05 | 39.32 ▼0.75 | 34.21 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 18.31 ▼4.73 | 624.28 ▼23.33 | 61.75 ▲8.51 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▼0.03 | 96.30 ▼2.01 | 43.75 ▼2.20 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-cancel-order/includes/dashboard.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in wc-cancel-order/assets to your readme.txt
wc-cancel-order/wc-cancel-order.php Passed 13 tests
"WC Cancel Order" version 3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
Allow customers to send order cancellation request from my account page.
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
Success! There were no dangerous files found in this plugin2,709 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 234 | 194 | 1,296 |
PO File | 3 | 267 | 337 | 704 |
CSS | 3 | 2 | 1 | 398 |
JavaScript | 3 | 18 | 10 | 285 |
SVG | 1 | 1 | 0 | 13 |
XML | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 21.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 6 | 6.98% |
▷ Public methods | 86 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin