89% map-business-box

Code Review | Google Multi Location Accordion

WordPress plugin Google Multi Location Accordion scored89%from 54 tests.

About plugin

  • Plugin page: map-business-box
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jun 14, 2017
  • Latest release: Jun 14, 2017
  • Number of updates: 6
  • Update frequency: every 3.7 days
  • Top authors: localmapco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /612 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Google Multi Location Accordion
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.94 ▲2.81
Dashboard /wp-admin3.36 ▲0.0256.01 ▼7.52
Posts /wp-admin/edit.php3.47 ▲0.1254.97 ▲0.27
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.38 ▼25.86
Media Library /wp-admin/upload.php3.26 ▲0.0347.70 ▲10.25

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Google Multi Location Accordion
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,966 ▲20514.56 ▲0.151.89 ▲0.2545.47 ▲4.70
Dashboard /wp-admin2,375 ▲1956.84 ▲1.18114.86 ▲24.6839.00 ▼4.98
Posts /wp-admin/edit.php2,300 ▲2003.83 ▲1.8050.60 ▲10.1935.13 ▼3.56
Add New Post /wp-admin/post-new.php1,716 ▲18822.65 ▼0.51641.35 ▼44.3643.96 ▼19.49
Media Library /wp-admin/upload.php1,440 ▲374.43 ▲0.32100.12 ▼1.1253.30 ▲8.42

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (The admin panel allows users to select the number of location in the accordion as well as select the color theme.), #2 (The second step is setting the location details for your locations. You can add details such as name, number, address, and logo.), #3 (Simply go to your location on Google, and grab the embed code.), #4 (The result is an intuitive location accordion that will provide excellent location signals from your website.)
The official readme.txt is a good inspiration

map-business-box/map_box.php 92% from 13 tests

"Google Multi Location Accordion" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("map-business-box.php" instead of "map_box.php")

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 plugin425 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP25737402
JavaScript24522
CSS1051

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin