10% ab-google-map-travel

Code Review | AB Google Map Travel (AB-MAP)

WordPress plugin AB Google Map Travel (AB-MAP) scored 10% from 54 tests.

About plugin

  • Plugin page: ab-google-map-travel
  • Plugin version: 4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.4
  • WordPress version: 5.9.2
  • First release: Jan 17, 2012
  • Latest release: Apr 3, 2020
  • Number of updates: 49
  • Update frequency: every 61.2 days
  • Top authors: abooze (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

200+ active / 13,368 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5610
    add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▼0.01MB] [CPU: ▼300.07ms] Passed 4 tests

Server-side resources used by AB Google Map Travel (AB-MAP)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0152.99 ▲4.49
Dashboard /wp-admin3.42 ▲0.0233.00 ▼2.30
Posts /wp-admin/edit.php3.65 ▲0.0139.78 ▲1.67
Add New Post /wp-admin/post-new.php6.90 ▼0.0796.49 ▼1,193.14
Media Library /wp-admin/upload.php3.30 ▲0.0025.45 ▼6.51

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 11 new options
New WordPress options
more_five_fare
zoom
map_height
day_more_five_fare
language
longitude
less_five_fare
latitude
day_less_five_fare
curr_format
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for AB Google Map Travel (AB-MAP)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,809 ▲5517.19 ▲1.189.63 ▲2.932.14 ▼0.86
Dashboard /wp-admin2,916 ▲587.05 ▲0.86124.04 ▼6.48184.85 ▲21.26
Posts /wp-admin/edit.php2,686 ▼83.40 ▲0.1768.53 ▲3.17141.45 ▼2.42
Add New Post /wp-admin/post-new.php1,682 ▼7116.77 ▼4.19433.00 ▼39.61185.42 ▲30.40
Media Library /wp-admin/upload.php1,723 ▲226.19 ▲0.62126.02 ▼13.39206.19 ▲15.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ab-google-map-travel/ab-google-map-travel.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: exit_msg in wp-content/plugins/ab-google-map-travel/ab-google-map-travel.php on line 14

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: distance calculator, ab google map travel, google maps, driving directions, abooze map plugin...

ab-google-map-travel/ab-google-map-travel.php 92% from 13 tests

The main file in "AB Google Map Travel (AB-MAP)" v. 4.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin462 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1719328
JavaScript18382
CSS10052

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.00KB0.89KB▼ 11.23%