Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/leo-travel-distance-time-manager/leo_dist_settings.php+11
Constant ABSPATH already defined
Server metrics [RAM: ▼1.94MB] [CPU: ▼56.94ms] Passed 4 tests
An overview of server-side resources used by Leo Travel Distance Time Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 4.55 ▼38.64 |
Dashboard /wp-admin | 2.06 ▼1.24 | 5.97 ▼49.54 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 5.82 ▼45.79 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.82 | 6.44 ▼93.77 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 4.95 ▼28.12 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Leo Travel Distance Time Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 15.53 ▲1.28 | 46.47 ▲44.26 | 50.78 ▲6.60 |
Dashboard /wp-admin | 2,195 ▲21 | 5.56 ▼0.11 | 85.15 ▼4.84 | 39.91 ▲0.24 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.96 ▼0.00 | 39.25 ▼0.20 | 34.97 ▲3.84 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.24 ▲0.38 | 685.40 ▲33.94 | 55.72 ▼4.22 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.06 | 98.57 ▼4.82 | 48.32 ▲3.65 |
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
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/leo-travel-distance-time-manager/leo_dist_settings.php+11
Constant ABSPATH already defined
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leo-travel-distance-time-manager/leo_dist_settings.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leo-travel-distance-time-manager/leo_dist_main.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
6 plugin tags: travel, google map, calculator, distance calculator, time calculator...
leo-travel-distance-time-manager/leo_dist_settings.php 92% from 13 tests
The main file in "Leo Travel Distance Time Manager" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("leo-travel-distance-time-manager.php" instead of "leo_dist_settings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin660 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 1 | 16 | 418 |
PHP | 2 | 0 | 9 | 146 |
CSS | 2 | 0 | 4 | 96 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
5 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/dest.png | 11.76KB | 3.06KB | ▼ 73.95% |
img/asiimg.png | 0.56KB | 0.27KB | ▼ 51.91% |
img/stop.png | 11.22KB | 3.05KB | ▼ 72.85% |
img/pick.png | 10.73KB | 2.66KB | ▼ 75.20% |
img/world-map-icon.png | 89.18KB | 28.81KB | ▼ 67.70% |