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 gracefully, with no errors
Server metrics [RAM: ▲0.23MB] [CPU: ▼2.14ms] Passed 4 tests
This is a short check of server-side resources used by Correos de Costa Rica Shipping Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 44.90 ▼0.16 |
Dashboard /wp-admin | 3.54 ▲0.20 | 53.71 ▼15.63 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 53.19 ▲4.19 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 95.40 ▲4.65 |
Media Library /wp-admin/upload.php | 3.46 ▲0.24 | 40.08 ▲3.04 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Correos de Costa Rica Shipping Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.18 ▼1.05 | 1.91 ▲0.07 | 43.08 ▼0.63 |
Dashboard /wp-admin | 2,226 ▲38 | 5.90 ▲0.00 | 98.98 ▼11.98 | 41.82 ▲0.43 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.01 ▼0.01 | 42.67 ▲3.07 | 37.31 ▲3.41 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 18.29 ▼4.95 | 624.28 ▼79.69 | 56.05 ▼3.87 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.18 ▼0.03 | 101.67 ▼10.21 | 45.48 ▼5.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-correos-de-costa-rica-shipping/includes/functions/pdevs-ccr-dependencies-alert-inactive-wc.php:28
- > 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 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: correos de costa rica, woocommerce, shipping, ecommerce
woo-correos-de-costa-rica-shipping/pdevs-ccr-web-service-woocommerce.php 77% from 13 tests
The principal PHP file in "Correos de Costa Rica Shipping Plugin" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-correos-de-costa-rica-shipping.php" instead of "pdevs-ccr-web-service-woocommerce.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.1" instead of "2.2")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,509 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 191 | 403 | 1,450 |
CSS | 1 | 0 | 0 | 59 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 27.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 60 | |
▷ Static methods | 1 | 1.67% |
▷ Public methods | 56 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.67% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
3 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-pdevs.png | 84.38KB | 9.71KB | ▼ 88.50% |
assets/images/icon-ccr.png | 0.62KB | 0.43KB | ▼ 31.19% |
assets/images/logo-pdevs.png | 19.95KB | 5.26KB | ▼ 73.63% |