68% wp-google-maps-auto-business-place-finder

Code Review | WP Google Maps Auto Business Place Finder

WordPress plugin WP Google Maps Auto Business Place Finder scored68%from 54 tests.

About plugin

  • Plugin page: wp-google-maps-au...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.2.4
  • WordPress version: 6.3.1
  • First release: Aug 5, 2015
  • Latest release: Sep 12, 2015
  • Number of updates: 6
  • Update frequency: every 6.5 days
  • Top authors: lucia.intelisano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,093 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.91MB] [CPU: ▼36.96ms] Passed 4 tests

A check of server-side resources used by WP Google Maps Auto Business Place Finder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.76 ▲1.20
Dashboard /wp-admin3.04 ▼0.3024.49 ▼40.78
Posts /wp-admin/edit.php3.04 ▼0.3123.51 ▼25.33
Add New Post /wp-admin/post-new.php3.04 ▼2.8425.14 ▼70.25
Media Library /wp-admin/upload.php3.04 ▼0.1922.95 ▼11.48
WP Google Auto Business Finder /wp-admin/options-general.php?page=wp-google-maps-auto-business-place-finder/wp-google-maps-auto-business-place-finder.php3.0427.36

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Google Maps Auto Business Place Finder: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▼0.141.70 ▼0.0839.80 ▼2.68
Dashboard /wp-admin2,199 ▲195.52 ▼0.1490.00 ▼4.2237.38 ▼1.02
Posts /wp-admin/edit.php2,101 ▲12.01 ▼0.0138.92 ▲1.6336.99 ▼1.23
Add New Post /wp-admin/post-new.php1,529 ▲123.52 ▲0.31679.36 ▲2.8260.16 ▲6.46
Media Library /wp-admin/upload.php1,407 ▲74.25 ▼0.0097.56 ▼11.3345.01 ▲1.44
WP Google Auto Business Finder /wp-admin/options-general.php?page=wp-google-maps-auto-business-place-finder/wp-google-maps-auto-business-place-finder.php1,4082.1226.9727.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wp-google-maps-auto-business-place-finder/wp-google-maps-auto-business-place-finder.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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/wp-google-maps-auto-business-place-finder/wp-google-maps-auto-business-place-finder.php:112

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: You can look at the official readme.txt

wp-google-maps-auto-business-place-finder/wp-google-maps-auto-business-place-finder.php Passed 13 tests

The primary PHP file in "WP Google Maps Auto Business Place Finder" version 1.2 is used by WordPress to initiate all plugin functionality
70 characters long description:
A plugin to get/find business places on google maps in a very easy way

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin859 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript112544336
PHP16833326
CSS1200116
HTML116081

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for 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.29
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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/pin.png3.34KB1.85KB▼ 44.62%
img/fsicon2.png4.79KB1.60KB▼ 66.66%
img/fsicon.png4.79KB1.60KB▼ 66.66%