89% tcbd-google-map

Code Review | TCBD Google Map

WordPress plugin TCBD Google Map scored89%from 54 tests.

About plugin

  • Plugin page: tcbd-google-map
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 8, 2015
  • Latest release: Aug 7, 2017
  • Number of updates: 9
  • Update frequency: every 81.1 days
  • Top authors: tcoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,175 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: ▼5.25ms] Passed 4 tests

Server-side resources used by TCBD Google Map
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0321.91 ▼14.72
Dashboard /wp-admin3.36 ▲0.0650.08 ▼4.23
Posts /wp-admin/edit.php3.41 ▲0.0647.14 ▼2.11
Add New Post /wp-admin/post-new.php5.94 ▲0.0690.97 ▲0.05
Media Library /wp-admin/upload.php3.28 ▲0.0636.10 ▲3.66
TCBD Google Map /wp-admin/plugins.php?page=TCBD_Google_Map_settings3.2533.38

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for TCBD Google Map
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲23916.01 ▲1.7747.97 ▲46.1839.12 ▼5.39
Dashboard /wp-admin2,209 ▲215.84 ▲0.96100.28 ▼6.3744.69 ▲3.83
Posts /wp-admin/edit.php2,092 ▼02.06 ▲0.0435.54 ▼0.2234.50 ▲2.25
Add New Post /wp-admin/post-new.php1,542 ▲918.29 ▼4.82592.20 ▼64.8761.79 ▼3.96
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0697.51 ▼1.2241.45 ▼1.68
TCBD Google Map /wp-admin/plugins.php?page=TCBD_Google_Map_settings1,0152.0725.7931.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (57 tag instead of maximum 10)
The official readme.txt might help

tcbd-google-map/plugin-hook.php 92% from 13 tests

The main PHP script in "TCBD Google Map" version 2.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tcbd-google-map.php" instead of "plugin-hook.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin720 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP38441642
JavaScript21867
CSS12011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Constants1
▷ Global constants1100.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
5 PNG files occupy 0.43MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/style-3.png70.58KB28.48KB▼ 59.65%
img/style-1.png181.13KB60.68KB▼ 66.50%
js/icon.png5.97KB3.53KB▼ 40.82%
img/style-2.png130.75KB56.89KB▼ 56.49%
img/style-4.png49.48KB27.79KB▼ 43.83%