84% responsive-google-maps

Code Review | Responsive Google Maps | by imbaa

WordPress plugin Responsive Google Maps | by imbaa scored84%from 54 tests.

About plugin

  • Plugin page: responsive-google...
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2015
  • Latest release: Nov 9, 2016
  • Number of updates: 38
  • Update frequency: every 15.2 days
  • Top authors: Zaglov (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /9,395 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.03MB] [CPU: ▼4.84ms] Passed 4 tests

This is a short check of server-side resources used by Responsive Google Maps | by imbaa
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.01 ▲1.65
Dashboard /wp-admin3.33 ▲0.0347.82 ▼1.49
Posts /wp-admin/edit.php3.39 ▲0.0346.31 ▼1.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.88 ▼16.29
Media Library /wp-admin/upload.php3.26 ▲0.0337.94 ▼0.45
Responsive Google Maps /wp-admin/options-general.php?page=responsive_gm_settings3.2230.05

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Responsive Google Maps | by imbaa
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.48 ▼0.211.76 ▼0.0343.26 ▲2.59
Dashboard /wp-admin2,213 ▲254.88 ▼1.0199.70 ▼6.0137.35 ▼2.21
Posts /wp-admin/edit.php2,090 ▲222.01 ▼0.0535.27 ▲1.4533.39 ▼2.50
Add New Post /wp-admin/post-new.php1,536 ▼623.34 ▲5.08655.66 ▲57.8650.04 ▼5.66
Media Library /wp-admin/upload.php1,389 ▼24.24 ▼0.1799.95 ▲1.1742.56 ▲0.12
Responsive Google Maps /wp-admin/options-general.php?page=responsive_gm_settings7842.0325.1523.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/responsive-google-maps/responsive_google_maps.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === responsive-google-maps === )
The official readme.txt might help

responsive-google-maps/responsive_google_maps.php 92% from 13 tests

The entry point to "Responsive Google Maps | by imbaa" version 1.2.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("responsive-google-maps.php" instead of "responsive_google_maps.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin264 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11117124
PHP18324112
CSS15028

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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