Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.39ms] Passed 4 tests
An overview of server-side resources used by Gps Tracker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.36 ▲4.35 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.16 ▼10.73 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.12 ▼0.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.32 ▼12.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.33 ▲2.54 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Gps Tracker: 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,789 ▲43 | 14.24 ▼0.38 | 1.64 ▲0.01 | 38.68 ▼0.86 |
Dashboard /wp-admin | 2,195 ▲14 | 5.59 ▼0.01 | 82.56 ▼18.87 | 39.92 ▲0.55 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.04 | 35.09 ▼6.08 | 32.06 ▼3.34 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.08 ▼0.48 | 684.44 ▲17.75 | 60.94 ▼1.20 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.17 ▼0.02 | 95.40 ▲0.12 | 41.53 ▼3.37 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gps-tracker/templates/shortcode-gpstracker-map.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/gps-tracker/admin/views/admin.php:10
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% 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
10 plugin tags: track, gps, cell, websmithing, openstreetview...
gps-tracker/gpstracker.php 85% from 13 tests
The primary PHP file in "Gps Tracker" version 1.0.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("gps-tracker.php" instead of "gpstracker.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin8,502 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 2,307 | 583 | 7,106 |
CSS | 5 | 67 | 18 | 764 |
PHP | 12 | 183 | 530 | 632 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 4 | 12.50% |
▷ Public methods | 25 | 78.12% |
▷ Protected methods | 4 | 12.50% |
▷ Private methods | 3 | 9.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.74MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/js/leaflet-0.7.5/images/layers-2x.png | 2.83KB | 1.67KB | ▼ 41.10% |
public/assets/js/leaflet-0.7.5/images/marker-icon-2x.png | 3.94KB | 2.53KB | ▼ 35.71% |
public/assets/images/coolred_small.png | 0.46KB | 0.50KB | 0.00% |
public/assets/images/coolgreen_small.png | 0.57KB | 0.58KB | 0.00% |
public/assets/images/coolgreen2_small.png | 3.59KB | 0.50KB | ▼ 86.13% |