84% best-wp-google-map

Code Review | Best-wp-google-map

WordPress plugin Best-wp-google-map scored 84% from 54 tests.

About plugin

  • Plugin page: best-wp-google-map
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2015
  • Latest release: Jan 12, 2015
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: raju_ahmed (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 1,746 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Best-wp-google-map
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.24 ▼8.65
Dashboard /wp-admin3.31 ▲0.0143.08 ▼3.30
Posts /wp-admin/edit.php3.36 ▲0.0141.75 ▼6.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.44 ▼15.11
Media Library /wp-admin/upload.php3.24 ▲0.0140.75 ▲8.42

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Best-wp-google-map
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.57 ▼0.876.60 ▲4.8535.95 ▼5.75
Dashboard /wp-admin2,209 ▲185.82 ▲0.96111.38 ▲8.2441.67 ▲1.24
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0536.21 ▲2.4832.38 ▼1.14
Add New Post /wp-admin/post-new.php1,670 ▲13722.20 ▼0.87628.49 ▼70.1159.65 ▲3.73
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0597.09 ▼15.3342.05 ▼8.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-wp-google-map/plug-hook.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: google-map, wp-map

best-wp-google-map/plug-hook.php 85% from 13 tests

Analyzing the main PHP file in "Best-wp-google-map" version 2.1
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("best-wp-google-map.php" instead of "plug-hook.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 293 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin66 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP121349
JavaScript15017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected