83% advanced-custom-fields-google-map-extended

Code Review | ACF: Google Map Extended

WordPress plugin ACF: Google Map Extended scored 83% from 54 tests.

About plugin

  • Plugin page: advanced-custom-f...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Nov 12, 2015
  • Latest release: Dec 18, 2015
  • Number of updates: 7
  • Update frequency: every 5.3 days
  • Top authors: codewahoo (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 17,901 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by ACF: Google Map Extended
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.22 ▲1.96
Dashboard /wp-admin3.31 ▲0.0145.95 ▲1.79
Posts /wp-admin/edit.php3.36 ▲0.0144.16 ▼5.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.50 ▼16.34
Media Library /wp-admin/upload.php3.23 ▲0.0132.60 ▼2.74

Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF: Google Map Extended
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.46 ▲0.161.77 ▼0.0343.85 ▼0.04
Dashboard /wp-admin2,206 ▲515.90 ▲0.2099.80 ▲2.6138.50 ▼2.74
Posts /wp-admin/edit.php2,092 ▲32.02 ▼0.0339.35 ▼0.1335.91 ▲1.85
Add New Post /wp-admin/post-new.php1,528 ▲1423.42 ▲5.95642.11 ▼52.3163.94 ▲7.04
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0295.52 ▼4.0642.04 ▼0.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field_google_map_extended' not found in wp-content/plugins/advanced-custom-fields-google-map-extended/acf-google-map-extended-v5.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-google-map-extended/acf-google-map-extended-base.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field_google_map_extended' not found in wp-content/plugins/advanced-custom-fields-google-map-extended/acf-google-map-extended-v4.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-fields-google-map-extended/acf-google-map-extended.php:20

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

advanced-custom-fields-google-map-extended/acf-google-map-extended.php 85% from 13 tests

"ACF: Google Map Extended" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("advanced-custom-fields-google-map-extended.php" instead of "acf-google-map-extended.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
No dangerous file extensions were detected1,243 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PO File5170195478
PHP499138374
JavaScript2148118256
CSS111135

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.75
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin