84% address-geocoder

Code Review | Address Geocoder

WordPress plugin Address Geocoder scored84%from 54 tests.

About plugin

  • Plugin page: address-geocoder
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.1
  • WordPress version: 6.3.1
  • First release: May 16, 2012
  • Latest release: Jan 23, 2019
  • Number of updates: 28
  • Update frequency: every 87.4 days
  • Top authors: MartySpellerberg (67.86%)mgibbs189 (35.71%)

Code review

54 tests

User reviews

7 reviews

Install metrics

900+ active /13,299 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Address Geocoder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.61 ▲0.84
Dashboard /wp-admin3.35 ▲0.0447.09 ▲0.27
Posts /wp-admin/edit.php3.40 ▲0.0446.49 ▼1.67
Add New Post /wp-admin/post-new.php5.48 ▼0.4167.03 ▼43.39
Media Library /wp-admin/upload.php3.27 ▲0.0442.03 ▲8.95
Address Geocoder /wp-admin/options-general.php?page=address-geocoder-options3.2431.58

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Address Geocoder: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▲0.011.75 ▲0.2343.66 ▲2.12
Dashboard /wp-admin2,199 ▲185.55 ▼0.1885.12 ▼13.1838.32 ▼5.86
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0233.44 ▼0.4033.61 ▼0.81
Add New Post /wp-admin/post-new.php6,227 ▲4,70125.96 ▲3.00885.66 ▲271.1248.69 ▲0.37
Media Library /wp-admin/upload.php1,398 ▲44.22 ▼0.0098.75 ▼2.7141.28 ▼0.32
Address Geocoder /wp-admin/options-general.php?page=address-geocoder-options9381.9922.8825.31

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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 | 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/address-geocoder/address-geocoder.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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:
  • Screenshots: These screenshots do not have images: #1 (The meta box before clicking "Geocode"), #2 (The meta box after clicking "Geocode"), #3 (The settings page)
Please take inspiration from this readme.txt

address-geocoder/address-geocoder.php Passed 13 tests

The primary PHP file in "Address Geocoder" version 1.0.1 is used by WordPress to initiate all plugin functionality
36 characters long description:
Attach location information to posts

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
No dangerous file extensions were detected230 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15746172
JavaScript112358

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.14MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png67.07KB24.93KB▼ 62.83%
screenshot-1.png33.43KB13.32KB▼ 60.14%
(invalid) screenshot-3.png45.06KB0.00KB▼ 100.00%