Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.47MB] [CPU: ▼14.66ms] Passed 4 tests
An overview of server-side resources used by TOURMIX
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 40.49 ▼1.28 |
Dashboard /wp-admin | 3.55 ▲0.25 | 50.32 ▼1.02 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 49.99 ▼0.43 |
Add New Post /wp-admin/post-new.php | 3.37 ▼2.52 | 37.56 ▼55.91 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 39.93 ▲8.32 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TOURMIX
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.72 ▲0.15 | 1.53 ▼0.37 | 40.04 ▼5.97 |
Dashboard /wp-admin | 2,197 ▲23 | 5.62 ▼0.05 | 93.71 ▼7.18 | 38.08 ▼5.09 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.03 ▲0.04 | 39.45 ▲0.56 | 34.53 ▼1.57 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.15 ▼0.05 | 691.44 ▲63.90 | 57.53 ▲13.02 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.19 ▼0.01 | 103.05 ▼5.20 | 43.87 ▼1.95 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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
Everything seems fine, however this is by no means 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 items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/tourmix/inc/TourmixShippingMethod.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
5 plugin tags: dispatch, woocommerce, delivery, order tracking, shipping
tourmix/tourmix-delivery.php 85% from 13 tests
"TOURMIX" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("tourmix.php" instead of "tourmix-delivery.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,600 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 383 | 551 | 1,331 |
JavaScript | 7 | 169 | 302 | 713 |
Sass | 5 | 104 | 0 | 550 |
CSS | 5 | 0 | 0 | 5 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 15 | 18.52% |
▷ Public methods | 62 | 76.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 23.46% |
Functions | 13 | |
▷ Named functions | 9 | 69.23% |
▷ Anonymous functions | 4 | 30.77% |
Constants | 45 | |
▷ Global constants | 4 | 8.89% |
▷ Class constants | 41 | 91.11% |
▷ Public constants | 38 | 92.68% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imgs/TOURMIX logo_250x150.png | 5.38KB | 2.49KB | ▼ 53.66% |