Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼8.25ms] Passed 4 tests
An overview of server-side resources used by AfterShip Returns – automated return, exchange, and refund management for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 42.12 ▼6.13 |
Dashboard /wp-admin | 3.41 ▲0.06 | 50.50 ▼12.36 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 52.60 ▲1.86 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.10 | 88.16 ▼16.36 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 39.01 ▲6.27 |
Server storage [IO: ▲2.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AfterShip Returns – automated return, exchange, and refund management for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲130 | 14.68 ▲0.34 | 2.14 ▲0.29 | 44.24 ▲2.71 |
Dashboard /wp-admin | 2,260 ▲83 | 5.64 ▲0.07 | 94.55 ▼9.12 | 78.73 ▲31.75 |
Posts /wp-admin/edit.php | 2,161 ▲61 | 1.98 ▲0.02 | 36.37 ▼1.30 | 33.54 ▼2.86 |
Add New Post /wp-admin/post-new.php | 1,585 ▲59 | 23.04 ▼0.17 | 701.00 ▲52.69 | 52.07 ▼6.55 |
Media Library /wp-admin/upload.php | 1,455 ▲58 | 4.19 ▼0.08 | 101.11 ▼3.48 | 62.22 ▲19.55 |
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 were found after uninstall: 7 options
- returnscenter_option_name
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/automizely-returnscenter/includes/api/class-am-rest-controller.php:5
- > PHP Warning
include(): Failed opening 'AUTOMIZELY_RETURNSCENTER_PATH/includes/api/class-am-rest-controller.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/automizely-returnscenter/includes/api/returnscenter/v1/class-am-rc-rest-settings-controller.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'AM_REST_Controller' not found in wp-content/plugins/automizely-returnscenter/includes/api/returnscenter/v1/class-am-rc-rest-settings-controller.php:10
- > PHP Warning
Use of undefined constant AUTOMIZELY_RETURNSCENTER_PATH - assumed 'AUTOMIZELY_RETURNSCENTER_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/automizely-returnscenter/includes/api/returnscenter/v1/class-am-rc-rest-settings-controller.php on line 5
- > PHP Warning
include(AUTOMIZELY_RETURNSCENTER_PATH/includes/api/class-am-rest-controller.php): failed to open stream: No such file or directory in wp-content/plugins/automizely-returnscenter/includes/api/returnscenter/v1/class-am-rc-rest-settings-controller.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: reverse logistics, post-purchase, rma, warranty, automation...
automizely-returnscenter/automizely-returnscenter.php 85% from 13 tests
The entry point to "AfterShip Returns – automated return, exchange, and refund management for WooCommerce" version 1.0.14 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 87 characters long)
- Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,014 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 111 | 198 | 568 |
CSS | 2 | 75 | 131 | 285 |
SVG | 7 | 0 | 0 | 132 |
JSON | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 35 | |
▷ Static methods | 4 | 11.43% |
▷ Public methods | 29 | 82.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 0% from 2 tests
Image compression 0% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 1.95MB with 1.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 138.88KB | 62.72KB | ▼ 54.84% |
(invalid) assets/screenshot-4.png | 62.26KB | 0.00KB | ▼ 100.00% |
(invalid) assets/screenshot-1.png | 64.91KB | 0.00KB | ▼ 100.00% |
assets/banner-772x250.png | 55.23KB | 25.21KB | ▼ 54.35% |
assets/icon-256x256.png | 7.03KB | 3.44KB | ▼ 51.01% |