84% store-locator-with-google-map

Code Review | Store Locator with Google Map

WordPress plugin Store Locator with Google Map scored84%from 54 tests.

About plugin

  • Plugin page: store-locator-wit...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2016
  • Latest release: Jul 25, 2023
  • Number of updates: 29
  • Update frequency: every 92.1 days
  • Top authors: zotabox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,032 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.25ms] Passed 4 tests

Server-side resources used by Store Locator with Google Map
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.97 ▲1.26
Dashboard /wp-admin3.36 ▲0.0554.08 ▼2.52
Posts /wp-admin/edit.php3.41 ▲0.0551.49 ▼2.64
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.11 ▼5.10
Media Library /wp-admin/upload.php3.28 ▲0.0539.86 ▲2.40

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 14 new options
New WordPress options
theysaidso_admin_options
ztb_source
ztb_email
ztb_id
ztb_access_key
widget_theysaidso_widget
ztb_domainid
can_compress_scripts
db_upgraded
widget_recent-comments
...

Browser metrics Passed 4 tests

An overview of browser requirements for Store Locator with Google Map
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.20 ▼0.081.80 ▲0.2845.75 ▲5.16
Dashboard /wp-admin2,202 ▲275.60 ▼0.0288.56 ▼13.3175.71 ▲36.55
Posts /wp-admin/edit.php2,101 ▲11.98 ▲0.0339.23 ▼2.0435.62 ▼2.69
Add New Post /wp-admin/post-new.php1,548 ▲2223.15 ▲0.06774.73 ▲81.4954.09 ▼5.70
Media Library /wp-admin/upload.php1,419 ▲194.23 ▲0.12107.85 ▼0.2679.05 ▲30.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 14 options in the database
    • ztb_status_message
    • widget_recent-comments
    • ztb_access_key
    • ztb_status_disconnect
    • theysaidso_admin_options
    • ztb_domainid
    • ztb_id
    • db_upgraded
    • ztb_email
    • widget_recent-posts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/store-locator-with-google-map/store-locator-with-google-map.php:15

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: store locator, store google map, google map, store map, zotabox

store-locator-with-google-map/store-locator-with-google-map.php Passed 13 tests

The entry point to "Store Locator with Google Map" version 1.2.0 is a PHP file that has certain tags in its header comment area
130 characters long description:
Now your customers can find your location easily with our simple, free Google Maps one store locator. Customizable and Responsive.

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
Good job! No executable or dangerous file extensions detected501 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS234273
PHP11915188
JavaScript14040

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
zotabox.png3.19KB0.44KB▼ 86.31%
assets/images/check.png2.96KB0.37KB▼ 87.47%
assets/images/logo-zotabox.png5.45KB2.43KB▼ 55.35%
assets/images/bg_body.png22.84KB9.83KB▼ 56.98%