89% wp-accurate-geolocation

Code Review | WordPress Accurate Geolocation

WordPress plugin WordPress Accurate Geolocation scored89%from 54 tests.

About plugin

  • Plugin page: wp-accurate-geolo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.2.4
  • WordPress version: 6.3.1
  • First release: Oct 3, 2015
  • Latest release: Oct 3, 2015
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: luciancapdefier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,761 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.22ms] Passed 4 tests

An overview of server-side resources used by WordPress Accurate Geolocation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.29 ▼4.87
Dashboard /wp-admin3.38 ▲0.0847.30 ▼2.91
Posts /wp-admin/edit.php3.49 ▲0.1451.04 ▲6.88
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.03 ▼20.15
Media Library /wp-admin/upload.php3.30 ▲0.0734.89 ▲3.06
Accurate Geolocation /wp-admin/options-general.php?page=accurate_geolocation3.2732.08

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
agl_settings
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress Accurate Geolocation
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15614.03 ▼0.2731.40 ▲29.0639.40 ▼9.44
Dashboard /wp-admin2,213 ▲255.88 ▲1.01108.57 ▼6.5742.19 ▼3.74
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0141.01 ▼4.5934.79 ▼4.38
Add New Post /wp-admin/post-new.php1,536 ▲2222.95 ▲5.35635.39 ▼3.2057.30 ▲7.17
Media Library /wp-admin/upload.php1,395 ▲104.29 ▲0.09101.11 ▼3.4742.87 ▼4.23
Accurate Geolocation /wp-admin/options-general.php?page=accurate_geolocation9792.0523.0327.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • agl_settings
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Screenshots: Please describe screenshot #10 in wp-accurate-geolocation/assets to your readme.txt
  • Tags: You are using too many tags: 24 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-accurate-geolocation/wp-accu-geolocation.php 77% from 13 tests

The main PHP file in "WordPress Accurate Geolocation" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-accurate-geolocation.php" instead of "wp-accu-geolocation.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected632 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP19314349
JavaScript23233283

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected