90% responsive-iframe-googlemap

Code Review | Responsive iframe GoogleMap

WordPress plugin Responsive iframe GoogleMap scored90%from 54 tests.

About plugin

  • Plugin page: responsive-iframe...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.0.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2018
  • Latest release: Dec 17, 2018
  • Number of updates: 11
  • Update frequency: every 5.6 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,469 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.26ms] Passed 4 tests

Analyzing server-side resources used by Responsive iframe GoogleMap
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0232.34 ▼7.48
Dashboard /wp-admin3.33 ▲0.0246.04 ▼2.49
Posts /wp-admin/edit.php3.38 ▲0.0250.88 ▲2.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.90 ▼15.77
Media Library /wp-admin/upload.php3.25 ▲0.0237.57 ▲0.71

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Responsive iframe GoogleMap
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.20 ▼1.555.01 ▲3.3742.81 ▲2.02
Dashboard /wp-admin2,211 ▲265.85 ▲0.9994.45 ▼17.9739.18 ▼5.20
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0038.94 ▼1.1534.66 ▼0.48
Add New Post /wp-admin/post-new.php1,367 ▼15216.61 ▼6.52567.47 ▼51.6941.39 ▼10.08
Media Library /wp-admin/upload.php1,385 ▼64.28 ▲0.0896.00 ▼1.7045.10 ▼2.11

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: The official readme.txt might help

responsive-iframe-googlemap/responsive-iframe-googlemap.php Passed 13 tests

The entry point to "Responsive iframe GoogleMap" version 1.0.2 is a PHP file that has certain tags in its header comment area
80 characters long description:
Responsive-friendly free GoogleMap. It can be easily arranged with a short code.

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 detected128 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1254593
JavaScript13322
CSS11113

PHP code Passed 2 tests

Analyzing 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.26
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.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%
Methods8
▷ Static methods225.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/googlemap-icon.png1.46KB1.41KB▼ 3.60%