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.15MB] [CPU: ▼10.08ms] Passed 4 tests
Analyzing server-side resources used by Shippit for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 44.01 ▲2.04 |
Dashboard /wp-admin | 3.46 ▲0.11 | 45.78 ▼16.64 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 44.83 ▼5.79 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.17 | 81.76 ▼18.95 |
Media Library /wp-admin/upload.php | 3.39 ▲0.15 | 36.29 ▲1.06 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Shippit for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲54 | 14.25 ▼0.52 | 1.80 ▼0.00 | 44.94 ▼2.87 |
Dashboard /wp-admin | 2,198 ▲24 | 5.64 ▲0.02 | 89.52 ▼10.52 | 39.72 ▼9.22 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 35.75 ▼2.67 | 32.63 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.66 ▲0.53 | 649.61 ▼32.55 | 64.61 ▲8.26 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▼0.08 | 101.31 ▲1.72 | 41.07 ▼1.41 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- 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 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 take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Log_Handler_File' not found in wp-content/plugins/shippit-simplified-australia-shipping/includes/class-shippit-log-handler.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shippit-simplified-australia-shipping/woocommerce-shippit.php:50
- > PHP Fatal error
Uncaught Error: Class 'Mamis_Shippit_Object' not found in wp-content/plugins/shippit-simplified-australia-shipping/includes/class-shippit-data-mapper-order-item.php:9
- > PHP Fatal error
Uncaught Error: Class 'Mamis_Shippit_Object' not found in wp-content/plugins/shippit-simplified-australia-shipping/includes/class-shippit-data-mapper-order.php:9
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/shippit-simplified-australia-shipping/includes/class-shippit-method.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% 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
These attributes need your attention:
- Donate link: Invalid url: "NA"
shippit-simplified-australia-shipping/woocommerce-shippit.php 77% from 13 tests
The primary PHP file in "Shippit for WooCommerce" version 2.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0.0" instead of "6.0.0")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shippit-simplified-australia-shipping.php" instead of "woocommerce-shippit.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
There were no executable files found in this plugin3,070 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 650 | 1,037 | 2,709 |
Markdown | 3 | 237 | 0 | 314 |
JavaScript | 1 | 8 | 7 | 47 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 162 | |
▷ Static methods | 13 | 8.02% |
▷ Public methods | 138 | 85.19% |
▷ Protected methods | 22 | 13.58% |
▷ Private methods | 2 | 1.23% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 20 | |
▷ Global constants | 1 | 5.00% |
▷ Class constants | 19 | 95.00% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected