Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼8.71ms] Passed 4 tests
A check of server-side resources used by CLICKSPORTS Maps
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 43.41 ▲1.37 |
Dashboard /wp-admin | 3.51 ▲0.17 | 47.30 ▼24.65 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 47.76 ▼1.30 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 96.45 ▼10.25 |
Media Library /wp-admin/upload.php | 3.44 ▲0.20 | 38.02 ▲4.35 |
CLICKSPORTS Maps /wp-admin/options-general.php?page=clicksports-maps | 3.40 | 293.80 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CLICKSPORTS Maps
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.67 ▲0.39 | 1.65 ▼0.20 | 38.45 ▼3.99 |
Dashboard /wp-admin | 2,202 ▲21 | 5.63 ▼0.03 | 94.80 ▼5.61 | 39.97 ▼3.17 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.94 ▼0.02 | 39.80 ▼0.07 | 35.53 ▲2.70 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.29 ▼1.82 | 695.07 ▲40.01 | 63.84 ▲3.29 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.18 ▼0.02 | 97.91 ▼4.17 | 39.52 ▼3.64 |
CLICKSPORTS Maps /wp-admin/options-general.php?page=clicksports-maps | 1,257 | 2.50 | 38.77 | 39.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- 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
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/clicksports-maps/public/partials/clicksports-maps-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/clicksports-maps/admin/partials/clicksports-maps-admin-display.php:54
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: alternative, clicksports, maps, google maps alternative, map...
clicksports-maps/clicksports-maps.php Passed 13 tests
The main PHP script in "CLICKSPORTS Maps" version 1.3.6 is automatically included on every request by WordPress
99 characters long description:
This plugin is a simple alternative to Google Maps and displays a customizable map on your website.
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
Everything looks great! No dangerous files found in this plugin1,833 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 364 | 818 | 915 |
PO File | 2 | 158 | 226 | 382 |
CSS | 2 | 69 | 27 | 270 |
JavaScript | 2 | 85 | 162 | 266 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 14.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 6 | 13.95% |
▷ Public methods | 38 | 88.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.63% |
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin