Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/canalplan-ac/canalplan.php+1299
Undefined variable: blog_id
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.22ms] 75% from 4 tests
Analyzing server-side resources used by Canalplan
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 769.43ms on /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-diagnostics.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 43.03 ▼0.99 |
Dashboard /wp-admin | 3.37 ▲0.03 | 50.51 ▼9.52 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 53.14 ▲2.30 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 90.97 ▼6.04 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.33 ▼0.33 |
Google Maps /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-google.php | 3.35 | 35.27 |
Set Location /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-location.php | 3.38 | 36.68 |
Diagnostics /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-diagnostics.php | 3.36 | 769.43 |
Home Mooring /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-home.php | 3.30 | 35.61 |
CanalPlan AC /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-menu.php | 3.29 | 34.48 |
Favourites /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-fav.php | 3.31 | 34.86 |
Canalplan Maps /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-cpmaps.php | 3.35 | 31.30 |
Manage Routes /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-manage_route.php | 3.51 | 36.13 |
Import Routes /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-import_route.php | 3.37 | 34.16 |
General Options /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-general.php | 3.52 | 249.65 |
Server storage [IO: ▲2.39MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 166 new files
Database: 9 new tables, 8 new options
New tables |
---|
wp_canalplan_polylines |
wp_canalplan_link |
wp_canalplan_routes |
wp_canalplan_aliases |
wp_canalplan_codes |
wp_canalplan_route_day |
wp_canalplan_canals |
wp_canalplan_favourites |
wp_canalplan_options |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_canalplan_widget |
plugin_error |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Canalplan
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 15.91 ▲1.38 | 33.03 ▲31.23 | 38.58 ▼3.58 |
Dashboard /wp-admin | 2,261 ▲84 | 5.63 ▲0.08 | 88.30 ▼6.15 | 37.96 ▼7.78 |
Posts /wp-admin/edit.php | 2,163 ▲60 | 2.00 ▼0.01 | 40.04 ▼1.32 | 37.16 ▲1.05 |
Add New Post /wp-admin/post-new.php | 6,346 ▲4,818 | 19.18 ▼3.99 | 902.75 ▲212.41 | 65.31 ▼2.93 |
Media Library /wp-admin/upload.php | 1,460 ▲63 | 4.25 ▲0.05 | 98.80 ▼4.67 | 45.16 ▼0.98 |
Google Maps /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-google.php | 4,326 | 2.16 | 31.78 | 27.77 |
Set Location /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-location.php | 983 | 2.06 | 25.28 | 30.19 |
Diagnostics /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-diagnostics.php | 1,103 | 1.99 | 23.17 | 52.61 |
Home Mooring /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-home.php | 899 | 2.06 | 25.40 | 24.89 |
CanalPlan AC /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-menu.php | 911 | 1.95 | 22.76 | 27.87 |
Favourites /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-fav.php | 993 | 2.03 | 22.34 | 30.80 |
Canalplan Maps /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-cpmaps.php | 4,316 | 1.96 | 22.24 | 25.54 |
Manage Routes /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-manage_route.php | 829 | 2.02 | 25.58 | 26.97 |
Import Routes /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-import_route.php | 844 | 2.02 | 23.97 | 24.34 |
General Options /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-general.php | 1,025 | 2.04 | 22.76 | 28.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- plugin_error
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_canalplan_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 54 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-cpmaps.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-cpmaps.php+56
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-google.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-google.php+61
Undefined index: canalplan_pm_width
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-google.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-google.php+67
Undefined index: canalplan_rm_type
- 22 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-google.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-google.php+73
Undefined index: canalplan_rm_zoom
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-google.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-google.php+77
Undefined index: canalplan_rm_height
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-google.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-google.php+81
Undefined index: canalplan_rm_width
- 256 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-google.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-google.php+86
Undefined index: canalplan_rm_r_hex
- 256 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-google.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-google.php+91
Undefined index: canalplan_rm_g_hex
- 256 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-google.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-google.php+96
Undefined index: canalplan_rm_b_hex
- 22 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-google.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-google.php+102
Undefined index: canalplan_rm_weight
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-google.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-google.php+110
Undefined index: canalplan_rm_key
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-diagnostics.php
- > Warning in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-diagnostics.php+142
A non-numeric value encountered
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-diagnostics.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-diagnostics.php+142
Undefined variable: timestring
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-cpmaps.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-cpmaps.php+60
Undefined index: canalplan_cppm_width
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-cpmaps.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-cpmaps.php+66
Undefined index: canalplan_cprm_type
- 18 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-cpmaps.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-cpmaps.php+72
Undefined index: canalplan_cprm_zoom
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-cpmaps.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-cpmaps.php+76
Undefined index: canalplan_cprm_height
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-cpmaps.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-cpmaps.php+80
Undefined index: canalplan_cprm_width
- 256 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-cpmaps.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-cpmaps.php+85
Undefined index: canalplan_cprm_r_hex
- 256 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-cpmaps.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-cpmaps.php+90
Undefined index: canalplan_cprm_g_hex
- 256 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-cpmaps.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-cpmaps.php+95
Undefined index: canalplan_cprm_b_hex
- 22 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-cpmaps.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-cpmaps.php+101
Undefined index: canalplan_cprm_weight
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-general.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-general.php+521
Undefined variable: gchecked
- > GET request to /wp-admin/admin.php?page=canalplan-ac/admin-pages/cp-admin-general.php
- > Notice in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-general.php+523
Undefined variable: cpchecked
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require_once(admin.php): failed to open stream: No such file or directory in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-diagnostics.php on line 10
- > PHP Warning
require_once(admin.php): failed to open stream: No such file or directory in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-cpmaps.php on line 10
- > PHP Warning
require_once(admin.php): failed to open stream: No such file or directory in wp-content/plugins/canalplan-ac/admin-pages/cp-manage_route.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-fav.php on line 10
- > PHP Warning
require_once(admin.php): failed to open stream: No such file or directory in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-fav.php on line 10
- > PHP Warning
require_once(admin.php): failed to open stream: No such file or directory in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-location.php on line 10
- > PHP Warning
require_once(admin.php): failed to open stream: No such file or directory in wp-content/plugins/canalplan-ac/admin-pages/cp-import_route.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-menu.php:10
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/canalplan-ac/canalplan.php on line 44
- > PHP Fatal error
require_once(): Failed opening required 'admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/canalplan-ac/admin-pages/cp-admin-home.php on line 10
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: crosspost, canalplan ac
canalplan-ac/canalplan.php 92% from 13 tests
The main PHP script in "Canalplan" version 5.00 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("canalplan-ac.php" instead of "canalplan.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin8,648 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 354 | 367 | 5,316 |
JavaScript | 11 | 237 | 209 | 2,915 |
HTML | 1 | 61 | 2 | 417 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 54 | |
▷ Named functions | 53 | 98.15% |
▷ Anonymous functions | 1 | 1.85% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
130 compressed PNG files occupy 0.23MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
canalplan/markers/turnround_6.png | 0.48KB | 0.45KB | ▼ 5.54% |
canalplan/markers/turnround_9.png | 0.48KB | 0.45KB | ▼ 5.54% |
canalplan/markers/turnround_12.png | 0.48KB | 0.45KB | ▼ 5.54% |
canalplan/markers/cp_73.png | 1.22KB | 1.00KB | ▼ 17.61% |
canalplan/markers/cp_3.png | 1.09KB | 0.89KB | ▼ 18.73% |