Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.31ms] Passed 4 tests
Analyzing server-side resources used by Time Express Parcels For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.75 ▼0.74 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.57 ▲5.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.21 ▼6.51 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.21 ▼10.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.25 ▲4.06 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Time Express Parcels For WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.12 | 1.88 ▲0.16 | 43.58 ▲5.59 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.24 | 106.06 ▼2.45 | 39.32 ▼4.27 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.98 ▼0.02 | 34.58 ▼1.83 | 30.63 ▼5.24 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 18.23 ▼5.06 | 589.60 ▼72.13 | 54.60 ▼13.47 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▲0.02 | 100.12 ▲2.40 | 40.66 ▼2.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/time-express/utils/functions.php
- > /wp-content/plugins/time-express/admin/timexpress-orders.php
- > /wp-content/plugins/time-express/classes/class-timexpress-api.php
- > /wp-content/plugins/time-express/admin/timexpress-settings/timexpress-user-settings.php
- > /wp-content/plugins/time-express/admin/timexpress-login/login_logout.php
- > /wp-content/plugins/time-express/timexpress-delivery.php
- > /wp-content/plugins/time-express/classes/class-timexpress-shipping.php
- > /wp-content/plugins/time-express/admin/timexpress-login/login-form.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: shipping, woocommerce, timexpress
time-express/timexpress-delivery.php 85% from 13 tests
"Time Express Parcels For WooCommerce" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.4")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("time-express.php" instead of "timexpress-delivery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin803 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 175 | 82 | 752 |
JavaScript | 1 | 2 | 0 | 33 |
CSS | 1 | 2 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 7 | 26.92% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 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
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/imgs/icon.png | 2.24KB | 0.81KB | ▼ 63.91% |
admin/timexpress-settings/logo.png | 32.48KB | 15.28KB | ▼ 52.95% |
admin/timexpress-login/logo.png | 32.48KB | 15.28KB | ▼ 52.95% |