Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.62ms] Passed 4 tests
Analyzing server-side resources used by GPXconnect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.32 ▼7.99 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.98 ▼13.08 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.64 ▼3.47 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 83.81 ▼9.93 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.22 ▲5.44 |
GPXconnect /wp-admin/options-general.php?page=gpxconnect | 3.21 | 33.93 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
gpxconnect_options |
Browser metrics Passed 4 tests
GPXconnect: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 14.22 ▼0.14 | 17.60 ▲15.61 | 39.89 ▼5.65 |
Dashboard /wp-admin | 2,213 ▲25 | 4.80 ▼0.24 | 97.71 ▼9.04 | 41.36 ▲2.87 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.02 | 43.79 ▲7.23 | 36.19 ▼0.51 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.15 ▼0.11 | 745.16 ▲81.80 | 60.91 ▲5.91 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.24 ▲0.01 | 99.95 ▼7.65 | 43.27 ▼1.76 |
GPXconnect /wp-admin/options-general.php?page=gpxconnect | 799 | 2.03 | 26.41 | 30.20 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gpxconnect/gpxconnect.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: geo, gpx, gps, maps, garmin...
gpxconnect/gpxconnect.php Passed 13 tests
Analyzing the main PHP file in "GPXconnect" version 1.0
37 characters long description:
Garmin Communicator WordPress plugin.
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
Success! There were no dangerous files found in this plugin7,006 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 28 | 1,489 | 5,381 | 6,580 |
CSS | 2 | 40 | 12 | 280 |
PHP | 3 | 56 | 161 | 146 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/garmin/device/style/choose_bg.png | 0.48KB | 0.25KB | ▼ 48.37% |