Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼9.01ms] Passed 4 tests
Analyzing server-side resources used by
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 39.72 ▲1.06 |
Dashboard /wp-admin | 3.39 ▲0.04 | 49.94 ▼9.85 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.42 ▲2.64 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 87.20 ▼12.71 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 35.82 ▼14.53 |
Lf Hiker /wp-admin/options-general.php?page=lfh_options_page | 3.36 | 31.02 |
About /wp-admin/admin.php?page=lfh_info | 3.30 | 27.94 |
All gpx files /wp-admin/upload.php?mode=list&attachment-filter=post_mime_type%3Aapplication%2Fgpx%2Bxml&filter_action=Filter&paged=1 | 3.51 | 39.35 |
Server storage [IO: ▲2.90MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- There were 1 file (0.86KB) illegally modified outside of "wp-content/plugins/lf-hiker/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 110 new files
Database: no new tables, 19 new options
New WordPress options |
---|
lfh_button_color |
lfh_number_gpx_for_checkbox |
lfh_download_gpx |
lfh_background_sub |
widget_recent-posts |
can_compress_scripts |
lfh_distance_unit |
db_upgraded |
lfh_background |
lfh_step_min |
... |
Browser metrics Passed 4 tests
: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.20 ▼1.18 | 1.81 ▲0.20 | 45.61 ▼2.94 |
Dashboard /wp-admin | 2,232 ▲41 | 5.79 ▲0.92 | 108.82 ▼6.38 | 73.53 ▲25.39 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.01 ▲0.00 | 40.00 ▲1.97 | 36.30 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,706 ▲186 | 24.45 ▲1.32 | 642.32 ▼65.68 | 52.21 ▼33.32 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.15 ▼0.07 | 97.88 ▼18.76 | 68.49 ▲18.40 |
Lf Hiker /wp-admin/options-general.php?page=lfh_options_page | 942 | 2.02 | 24.39 | 40.48 |
About /wp-admin/admin.php?page=lfh_info | 873 | 2.02 | 27.10 | 34.70 |
All gpx files /wp-admin/upload.php?mode=list&attachment-filter=post_mime_type%3Aapplication%2Fgpx%2Bxml&filter_action=Filter&paged=1 | 1,332 | 1.80 | 28.58 | 33.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: gpx, hiker, track, map, leaflet...
lf-hiker/lf-hiker.php 92% from 13 tests
The main PHP file in "" ver. 1.13.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected18,778 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 2,941 | 3,789 | 10,407 |
PHP | 24 | 293 | 289 | 2,635 |
CSS | 9 | 155 | 121 | 2,576 |
PO File | 6 | 839 | 1,209 | 1,839 |
LESS | 2 | 74 | 14 | 1,199 |
SVG | 1 | 75 | 0 | 87 |
JSON | 1 | 0 | 0 | 35 |
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.38 |
Average class complexity | 17.38 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 124 | |
▷ Static methods | 66 | 53.23% |
▷ Public methods | 88 | 70.97% |
▷ Protected methods | 3 | 2.42% |
▷ Private methods | 33 | 26.61% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
35 PNG files occupy 0.75MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/markers-plain.png | 7.76KB | 5.10KB | ▼ 34.23% |
images/icons/marker.png | 0.48KB | 0.33KB | ▼ 31.84% |
images/markers/pointS000063.png | 0.42KB | 0.32KB | ▼ 23.76% |
css/images/markers-shadow@2x.png | 1.43KB | 1.56KB | 0.00% |
css/images/markers-plain.png | 7.76KB | 5.10KB | ▼ 34.23% |