90% api-key-for-google-maps

Code Review | API KEY for Google Maps

WordPress plugin API KEY for Google Maps scored90%from 54 tests.

About plugin

  • Plugin page: api-key-for-googl...
  • Plugin version: 1.2.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 1, 2016
  • Latest release: Aug 10, 2023
  • Number of updates: 14
  • Update frequency: every 185.4 days
  • Top authors: stiofansisland (92.86%)wpdev10 (14.29%)

Code review

54 tests

User reviews

55 reviews

Install metrics

60,000+ active /616,840 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.16ms] Passed 4 tests

This is a short check of server-side resources used by API KEY for Google Maps
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.82 ▼6.45
Dashboard /wp-admin3.34 ▲0.0453.80 ▲1.16
Posts /wp-admin/edit.php3.39 ▲0.0348.47 ▼3.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.03 ▼12.60
Media Library /wp-admin/upload.php3.26 ▲0.0336.54 ▼2.19
Google API KEY /wp-admin/options-general.php?page=gmaps-api-key3.2334.18

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for API KEY for Google Maps
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲3713.23 ▼1.161.78 ▼0.6143.78 ▼5.72
Dashboard /wp-admin2,212 ▲245.85 ▼0.05105.10 ▼5.7139.42 ▲0.13
Posts /wp-admin/edit.php2,098 ▲91.99 ▼0.0237.33 ▼3.6735.09 ▼3.21
Add New Post /wp-admin/post-new.php1,539 ▲1023.31 ▲0.00663.67 ▲30.0659.87 ▲7.98
Media Library /wp-admin/upload.php1,394 ▲64.21 ▲0.0099.91 ▼8.3345.82 ▼1.29
Google API KEY /wp-admin/options-general.php?page=gmaps-api-key8312.1526.1228.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: google maps api key, google maps key, google maps callback, google maps api callback, google maps

api-key-for-google-maps/api-key-for-google-maps.php 92% from 13 tests

This is the main PHP file of "API KEY for Google Maps" version 1.2.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin139 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2258193
PO File1111146

PHP code Passed 2 tests

Analyzing 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.36
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin