84% gmaps-clickn-load-for-divi

Code Review | Google Maps Click'n Load for Divi (GDPR)

WordPress plugin Google Maps Click'n Load for Divi (GDPR) scored84%from 54 tests.

About plugin

  • Plugin page: gmaps-clickn-load...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2019
  • Latest release: Mar 28, 2019
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: 4ley (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /1,292 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼18.57ms] Passed 4 tests

An overview of server-side resources used by Google Maps Click'n Load for Divi (GDPR)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.94 ▲5.73
Dashboard /wp-admin3.32 ▼0.0344.77 ▼21.06
Posts /wp-admin/edit.php3.37 ▲0.0147.68 ▼1.34
Add New Post /wp-admin/post-new.php5.45 ▼0.4467.05 ▼43.74
Media Library /wp-admin/upload.php3.19 ▼0.0429.16 ▼8.14

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Google Maps Click'n Load for Divi (GDPR)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.181.72 ▼0.3342.90 ▼0.53
Dashboard /wp-admin2,198 ▲185.59 ▼0.0085.80 ▼4.4139.37 ▼2.95
Posts /wp-admin/edit.php2,100 ▲31.96 ▼0.0232.85 ▼4.8535.99 ▼1.38
Add New Post /wp-admin/post-new.php1,535 ▲718.20 ▼5.19648.84 ▼26.5971.79 ▲22.64
Media Library /wp-admin/upload.php1,400 ▲34.17 ▼0.05105.27 ▼8.9446.67 ▼2.82

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/gmaps-clickn-load-for-divi/gmaps-clickn-load-for-divi.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: divi, privacy, dsgvo, compliance, gdpr...

gmaps-clickn-load-for-divi/gmaps-clickn-load-for-divi.php Passed 13 tests

The entry point to "Google Maps Click'n Load for Divi (GDPR)" version 1.0.0 is a PHP file that has certain tags in its header comment area
66 characters long description:
Load the Divi Maps Module only when your visitors really wants to.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin62 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File16834
PHP1123627
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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.50
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods266.67%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected