84% custom-google-maps

Code Review | Custom Google Maps

WordPress plugin Custom Google Maps scored84%from 54 tests.

About plugin

  • Plugin page: custom-google-maps
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 25, 2017
  • Latest release: Aug 25, 2017
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: ctuxboy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /718 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.10MB] [CPU: ▼8.18ms] Passed 4 tests

A check of server-side resources used by Custom Google Maps
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0340.34 ▼4.49
Dashboard /wp-admin3.58 ▲0.0145.97 ▼4.74
Posts /wp-admin/edit.php3.71 ▲0.0350.64 ▼2.48
Add New Post /wp-admin/post-new.php5.72 ▼0.4284.72 ▼20.38
Media Library /wp-admin/upload.php3.49 ▲0.0036.04 ▼3.09

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Custom Google Maps
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.26 ▼0.121.80 ▲0.1240.25 ▼4.82
Dashboard /wp-admin2,217 ▲405.64 ▲0.0484.93 ▼9.0442.54 ▼1.65
Posts /wp-admin/edit.php2,122 ▲222.02 ▲0.0235.07 ▼3.8634.48 ▼1.62
Add New Post /wp-admin/post-new.php1,561 ▲1623.24 ▲0.18661.50 ▼48.9165.01 ▲17.35
Media Library /wp-admin/upload.php1,422 ▲224.24 ▼0.05100.54 ▼11.4851.17 ▲5.60

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-google-maps/admin/settings.php:8

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: map marker, map, custom google maps

custom-google-maps/custom-google-maps.php Passed 13 tests

"Custom Google Maps" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Embed a customized google map with a customized marker.

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
Success! There were no dangerous files found in this plugin184 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP45753184
JavaScript1110

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected