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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.05ms] Passed 4 tests
A check of server-side resources used by Gps Plotter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.47 ▲0.46 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.42 ▼8.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.27 ▲2.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.77 ▼14.29 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.63 ▲3.66 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Gps Plotter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.49 ▲0.19 | 1.95 ▼0.09 | 43.49 ▲0.81 |
Dashboard /wp-admin | 2,206 ▲21 | 5.85 ▼0.01 | 107.26 ▼7.49 | 40.73 ▼5.49 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.04 | 39.58 ▼7.18 | 35.02 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,534 ▲12 | 23.28 ▲0.18 | 632.42 ▼0.92 | 60.22 ▲8.23 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.04 | 106.18 ▲8.88 | 46.65 ▲3.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
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 | 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/gps-plotter/templates/shortcode-gpsplotter-map.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gps-plotter/admin/views/options.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: phone, map, plotter, track, google...
gps-plotter/gpsplotter.php 77% from 13 tests
The main PHP script in "Gps Plotter" version 5.2.0 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 216 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("gps-plotter.php" instead of "gpsplotter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin9,010 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 2,394 | 661 | 7,524 |
CSS | 5 | 73 | 18 | 783 |
PHP | 11 | 201 | 471 | 703 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 4 | 14.29% |
▷ Private methods | 2 | 7.14% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 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
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/images/coolshadow_small.png | 0.43KB | 0.52KB | 0.00% |
public/assets/images/coolred_small.png | 0.46KB | 0.50KB | 0.00% |
public/assets/js/leaflet-0.7.5/images/marker-icon.png | 1.71KB | 1.56KB | ▼ 8.59% |
public/assets/images/coolgreen2_small.png | 3.59KB | 0.50KB | ▼ 86.13% |
public/assets/js/leaflet-0.7.5/images/marker-icon-2x.png | 3.94KB | 2.53KB | ▼ 35.71% |