84% cf-geoplugin-gps

Code Review | Geo Controller GPS extension  

WordPress plugin Geo Controller GPS extension   scored84%from 54 tests.

About plugin

  • Plugin page: cf-geoplugin-gps
  • Plugin version: 2.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 15, 2019
  • Latest release: Aug 22, 2023
  • Number of updates: 44
  • Update frequency: every 33.4 days
  • Top authors: ivijanstefan (81.82%)creativform (20.45%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,221 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.64ms] Passed 4 tests

An overview of server-side resources used by Geo Controller GPS extension  
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.02 ▼6.97
Dashboard /wp-admin3.31 ▼0.0444.53 ▼16.88
Posts /wp-admin/edit.php3.36 ▲0.0047.17 ▼0.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.34 ▼1.24
Media Library /wp-admin/upload.php3.23 ▲0.0032.58 ▼5.47

Server storage [IO: ▲3.50MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Geo Controller GPS extension  
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.36 ▼0.994.28 ▲2.4642.74 ▼1.30
Dashboard /wp-admin2,206 ▲185.90 ▲0.00107.07 ▼3.6441.54 ▼0.25
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0241.93 ▲3.8136.60 ▲0.25
Add New Post /wp-admin/post-new.php1,514 ▼517.47 ▼4.73604.85 ▼119.6646.50 ▼8.32
Media Library /wp-admin/upload.php1,385 ▲34.25 ▲0.0297.04 ▼5.7340.90 ▼5.41

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 5× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cf-geoplugin-gps/constants.php
    • > /wp-content/plugins/cf-geoplugin-gps/cf-geoplugin-gps.php
    • > /wp-content/plugins/cf-geoplugin-gps/inc/classes/GPS.php
    • > /wp-content/plugins/cf-geoplugin-gps/inc/Init.php
    • > /wp-content/plugins/cf-geoplugin-gps/inc/classes/Requirements.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt might help

cf-geoplugin-gps/cf-geoplugin-gps.php Passed 13 tests

The primary PHP file in "Geo Controller GPS extension  " version 2.1.2 is used by WordPress to initiate all plugin functionality
51 characters long description:
WordPress GPS module for the Geo Controller Plugin.

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
Good job! No executable or dangerous file extensions detected1,153 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7107257695
PO File26264259
JavaScript12431199

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity25.00
▷ Minimum class complexity20.00
▷ Maximum class complexity33.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods30
▷ Static methods723.33%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions11
▷ Named functions00.00%
▷ Anonymous functions11100.00%
Constants33
▷ Global constants33100.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
There were not PNG files found in your plugin