84% gpxconnect

Code Review | GPXconnect

WordPress plugin GPXconnect scored84%from 54 tests.

About plugin

  • Plugin page: gpxconnect
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2013
  • Latest release: Mar 16, 2013
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: davidkeen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,287 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.32 ▼7.99
Dashboard /wp-admin3.32 ▲0.0248.98 ▼13.08
Posts /wp-admin/edit.php3.38 ▲0.0246.64 ▼3.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.81 ▼9.93
Media Library /wp-admin/upload.php3.25 ▲0.0240.22 ▲5.44
GPXconnect /wp-admin/options-general.php?page=gpxconnect3.2133.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲16214.22 ▼0.1417.60 ▲15.6139.89 ▼5.65
Dashboard /wp-admin2,213 ▲254.80 ▼0.2497.71 ▼9.0441.36 ▲2.87
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0243.79 ▲7.2336.19 ▼0.51
Add New Post /wp-admin/post-new.php1,536 ▲1623.15 ▼0.11745.16 ▲81.8060.91 ▲5.91
Media Library /wp-admin/upload.php1,386 ▲14.24 ▲0.0199.95 ▼7.6543.27 ▼1.76
GPXconnect /wp-admin/options-general.php?page=gpxconnect7992.0326.4130.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript281,4895,3816,580
CSS24012280
PHP356161146

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 code0.14
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
js/garmin/device/style/choose_bg.png0.48KB0.25KB▼ 48.37%