84% convert-address-to-google-maps-link

Code Review | Convert Address to Google Maps Link

WordPress plugin Convert Address to Google Maps Link scored84%from 54 tests.

About plugin

  • Plugin page: convert-address-t...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.4.2
  • WordPress version: 6.3.1
  • First release: Jul 25, 2012
  • Latest release: Feb 13, 2016
  • Number of updates: 25
  • Update frequency: every 52.0 days
  • Top authors: themightymo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /7,323 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.13ms] Passed 4 tests

Analyzing server-side resources used by Convert Address to Google Maps Link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.45 ▼4.55
Dashboard /wp-admin3.31 ▲0.0043.51 ▼7.42
Posts /wp-admin/edit.php3.36 ▲0.0044.24 ▲0.74
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.05 ▲3.22
Media Library /wp-admin/upload.php3.23 ▲0.0034.07 ▼1.29

Server storage [IO: ▲0.34MB] [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: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Convert Address to Google Maps Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲16413.99 ▼0.398.91 ▲7.2439.63 ▼5.53
Dashboard /wp-admin2,205 ▲145.88 ▲0.96107.45 ▲3.3042.49 ▼2.71
Posts /wp-admin/edit.php2,091 ▲22.02 ▲0.0139.17 ▲2.8835.02 ▼1.78
Add New Post /wp-admin/post-new.php1,514 ▼617.55 ▼5.63599.02 ▼87.8651.86 ▼2.32
Media Library /wp-admin/upload.php1,393 ▲24.25 ▲0.0995.68 ▼8.8541.48 ▼6.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/convert-address-to-google-maps-link/convert-address-to-google-maps-link.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Using the ‘address-iframe’ class), #2 (Using the html5 ‘
    ’ markup), #3 (Using the inline ‘.address’ class)
You can look at the official readme.txt

convert-address-to-google-maps-link/convert-address-to-google-maps-link.php Passed 13 tests

"Convert Address to Google Maps Link" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
Changes all addresses into links that open a Google Map in a new window/tab

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin21 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11214
PHP16227

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.34MB with 0.24MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png194.64KB54.93KB▼ 71.78%
screenshot-3.png69.61KB19.87KB▼ 71.46%
screenshot-2.png80.29KB23.80KB▼ 70.35%