Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-e-commerce-region-based-shipping-for-australia-states/crikey.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; crikey has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼52.19ms] Passed 4 tests
An overview of server-side resources used by WP E-Commerce Region Based Shipping Australia States
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.65 ▼34.25 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.06 ▼44.96 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.14 ▼42.73 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.48 ▼86.83 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 4.86 ▼29.33 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
WP E-Commerce Region Based Shipping Australia States: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.35 | 1.87 ▼0.28 | 44.38 ▼2.36 |
Dashboard /wp-admin | 2,198 ▲18 | 5.57 ▲0.03 | 84.72 ▼2.52 | 43.02 ▲5.06 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.11 | 38.12 ▲2.76 | 35.12 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,528 ▼3 | 23.30 ▲0.14 | 650.21 ▼20.86 | 54.89 ▲1.61 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.25 ▼0.02 | 96.26 ▼6.51 | 41.61 ▼4.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wp-e-commerce-region-based-shipping-for-australia-states/crikey.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; crikey has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
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)
Good news, no errors were detected
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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-e-commerce-region-based-shipping-for-australia-states/crikey.php:302
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== wp-e-commerce-region-based-shipping-for-australia-states ===
) - Screenshots: Please add images for these screenshots: #1 (Screenshot of modules backend options), #2 (Screenshot of modules frontend options)
wp-e-commerce-region-based-shipping-for-australia-states/crikey.php 92% from 13 tests
Analyzing the main PHP file in "WP E-Commerce Region Based Shipping Australia States" version 0.1.2
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-e-commerce-region-based-shipping-for-australia-states.php" instead of "crikey.php")
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
No dangerous file extensions were detected181 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 71 | 53 | 181 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 18.80KB | 8.59KB | ▼ 54.29% |
screenshot-1.png | 55.51KB | 17.31KB | ▼ 68.81% |