Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.45ms] Passed 4 tests
This is a short check of server-side resources used by GPX Viewer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.95 ▲0.36 |
Dashboard /wp-admin | 3.46 ▲0.15 | 49.74 ▼2.19 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 54.32 ▲7.11 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 86.92 ▼8.94 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.49 ▲0.97 |
GPX Viewer /wp-admin/options-general.php?page=gpxviewer | 3.32 | 29.66 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by GPX Viewer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲192 | 15.17 ▲0.78 | 5.97 ▲4.20 | 43.04 ▼5.39 |
Dashboard /wp-admin | 2,255 ▲64 | 5.86 ▲0.96 | 102.63 ▼7.27 | 80.09 ▲38.14 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.82 ▲0.77 | 37.98 ▲0.39 | 35.98 ▼1.41 |
Add New Post /wp-admin/post-new.php | 1,712 ▲170 | 23.70 ▲5.02 | 788.12 ▲163.27 | 38.47 ▼10.69 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 5.25 ▲1.04 | 106.41 ▲9.60 | 87.54 ▲44.77 |
GPX Viewer /wp-admin/options-general.php?page=gpxviewer | 1,222 | 2.50 | 29.92 | 26.81 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gpxviewer
- > Notice in wp-content/plugins/gpx-viewer/gpx-viewer-admin.php+272
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gpx-viewer/gpx-viewer.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 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
7 plugin tags: leaflet, track, map, profile, path...
gpx-viewer/gpx-viewer.php Passed 13 tests
The main file in "GPX Viewer" v. 2.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
A plugin to display GPX tracks with their elevation profile on OSM maps
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,289 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 294 | 513 | 2,280 |
PHP | 5 | 103 | 97 | 1,038 |
CSS | 3 | 77 | 34 | 971 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
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 | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/marker.png | 0.48KB | 0.33KB | ▼ 31.84% |
images/move.png | 0.70KB | 0.62KB | ▼ 11.70% |
images/marker-icon-wpt.png | 1.64KB | 1.14KB | ▼ 30.33% |
images/marker-icon-end.png | 1.46KB | 0.81KB | ▼ 44.24% |
images/marker-icon-start.png | 1.60KB | 1.14KB | ▼ 28.91% |