Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼12.34ms] Passed 4 tests
This is a short check of server-side resources used by Citrino Shipping for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.18 ▼0.36 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.96 ▼20.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.33 ▼8.82 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.06 ▼16.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.51 ▼3.23 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Citrino Shipping for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.72 ▲0.44 | 1.89 ▼0.12 | 41.70 ▲0.48 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▼0.06 | 93.33 ▲3.60 | 39.29 ▼4.86 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▼0.00 | 33.59 ▼0.85 | 34.80 ▼3.79 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.05 ▲4.73 | 691.24 ▲57.38 | 52.91 ▼14.61 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.02 | 110.90 ▼0.96 | 51.75 ▲7.67 |
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 detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/citrino-shipping/citrino-shipping-for-woocommerce-canada-post.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/citrino-shipping/citrino-shipping-for-woocommerce-shipping-method.php:3
- > PHP Fatal error
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 94% from 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
These attributes need your attention:
- Screenshots: Please a description for screenshot #2 in citrino-shipping/assets to your readme.txt
citrino-shipping/citrino.php 92% from 13 tests
The entry point to "Citrino Shipping for WooCommerce" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("citrino-shipping.php" instead of "citrino.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin193 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 35 | 14 | 193 |
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.34 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 33.33% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin