10% geolocaladmin

Code Review | GeolocalAdmin

WordPress plugin GeolocalAdmin scored10%from 54 tests.

About plugin

  • Plugin page: geolocaladmin
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Dec 3, 2012
  • Latest release: Dec 5, 2012
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: mateo-design (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /963 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/geolocaladmin/geolocaladmin_widget.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; geolocaladmin_widget has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼58.66ms] Passed 4 tests

A check of server-side resources used by GeolocalAdmin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.369.28 ▼27.29
Dashboard /wp-admin2.12 ▼1.226.68 ▼71.59
Posts /wp-admin/edit.php2.12 ▼1.245.64 ▼42.28
Add New Post /wp-admin/post-new.php2.12 ▼3.776.10 ▼93.47
Media Library /wp-admin/upload.php2.12 ▼1.115.12 ▼26.81

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
widget_geolocaladmin_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for GeolocalAdmin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲15914.74 ▲0.4812.90 ▲11.0136.45 ▼3.43
Dashboard /wp-admin2,199 ▲255.79 ▲0.2098.47 ▲13.1644.70 ▲2.26
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0235.17 ▼1.2931.35 ▼4.06
Add New Post /wp-admin/post-new.php1,529 ▲123.01 ▼0.16655.78 ▼14.2355.67 ▲3.74
Media Library /wp-admin/upload.php1,394 ▼64.20 ▲0.00100.46 ▲0.5041.86 ▼3.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/geolocaladmin/geolocaladmin_widget.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; geolocaladmin_widget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_geolocaladmin_widget
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/geolocaladmin/geolocaladmin.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/geolocaladmin/geolocaladmin_widget.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === geolocaladmin === )
The official readme.txt is a good inspiration

geolocaladmin/geolocaladmin.php Passed 13 tests

The primary PHP file in "GeolocalAdmin" version 0.1 is used by WordPress to initiate all plugin functionality
130 characters long description:
a plugin to geolocalizate any backend user in order to show this info in post, displaying a googlemap of his last connect place...

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected299 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP251100236
JavaScript141556
Markdown1204
CSS1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity15.00
▷ Minimum class complexity6.00
▷ Maximum class complexity24.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin