Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.91ms] 75% from 4 tests
Analyzing server-side resources used by Car Route Planner Plugin
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 3,328.84ms on /wp-admin/options-general.php?page=car-route-planner-config-page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.97 ▼4.85 |
Dashboard /wp-admin | 3.36 ▲0.02 | 44.41 ▼16.44 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.35 ▲4.87 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 89.93 ▼12.42 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.36 ▲2.08 |
Car Route Planner /wp-admin/options-general.php?page=car-route-planner-config-page | 4.25 | 3,328.84 |
Server storage [IO: ▲0.55MB] [DB: ▲0.11MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 86 new files
Database: no new tables, 22 new options
New WordPress options |
---|
widget_recent-comments |
crp_show_result_scheme |
crp_currency |
widget_theysaidso_widget |
widget_recent-posts |
crp_show_result_length |
crp_text_color |
crp_show_speed_profile |
crp_show_result_fuel_cost |
crp_show_result_driving_time |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Car Route Planner Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.72 ▲0.37 | 1.81 ▲0.24 | 39.74 ▲0.39 |
Dashboard /wp-admin | 2,196 ▲16 | 5.56 ▼0.01 | 90.22 ▼2.02 | 42.27 ▲0.98 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.03 | 38.81 ▲5.79 | 38.41 ▲1.25 |
Add New Post /wp-admin/post-new.php | 1,696 ▲161 | 22.03 ▲3.95 | 630.40 ▼6.16 | 57.12 ▼21.97 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.28 ▲0.06 | 95.83 ▼4.99 | 39.86 ▼5.47 |
Car Route Planner /wp-admin/options-general.php?page=car-route-planner-config-page | 7,554 | 3.24 | 66.00 | 51.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/car-route-planner/car-route-planner.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant CRP_PLUGIN_DIR - assumed 'CRP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/car-route-planner/class.car-route-planner-admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/car-route-planner/block/car-route-planner-block.php:21
- > PHP Fatal error
require_once(): Failed opening required 'CRP_PLUGIN_DIRclass.car-route-planner.php' (include_path='.:/usr/share/php') in wp-content/plugins/car-route-planner/class.car-route-planner-admin.php on line 3
- > PHP Warning
require_once(CRP_PLUGIN_DIRclass.car-route-planner.php): failed to open stream: No such file or directory in wp-content/plugins/car-route-planner/class.car-route-planner-admin.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: route, direction, travel, calculator, distance
car-route-planner/car-route-planner.php 92% from 13 tests
The main PHP script in "Car Route Planner Plugin" version 1.7 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
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 plugin7,031 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 15 | 5 | 0 | 2,866 |
JavaScript | 8 | 108 | 103 | 1,817 |
PO File | 12 | 720 | 720 | 1,500 |
PHP | 5 | 121 | 25 | 748 |
CSS | 4 | 20 | 7 | 83 |
Sass | 1 | 2 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 49.50 |
▷ Minimum class complexity | 48.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 4.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 32 | 100.00% |
▷ Public methods | 14 | 43.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 56.25% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 3 | 23.08% |
▷ Class constants | 10 | 76.92% |
▷ Public constants | 10 | 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 images were found in this plugin