79% mona-here-map-embed

Code Review | Mona HERE map Embed

WordPress plugin Mona HERE map Embed scored79%from 54 tests.

About plugin

  • Plugin page: mona-here-map-embed
  • Plugin version: 1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.0.2
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Dec 31, 2018
  • Number of updates: 11
  • Update frequency: every 4.8 days
  • Top authors: diancom1202 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /766 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
This plugin's installer ran successfully

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

A check of server-side resources used by Mona HERE map Embed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.89 ▲1.86
Dashboard /wp-admin3.31 ▲0.0144.30 ▼1.44
Posts /wp-admin/edit.php3.36 ▲0.0142.74 ▼3.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.85 ▲2.49
Media Library /wp-admin/upload.php3.23 ▲0.0139.23 ▲7.37

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Mona HERE map Embed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10913.24 ▼1.381.88 ▲0.1141.46 ▼0.61
Dashboard /wp-admin2,225 ▲374.87 ▼0.9999.57 ▼4.5339.78 ▼1.34
Posts /wp-admin/edit.php2,105 ▲162.02 ▲0.0238.09 ▼2.3333.89 ▲1.35
Add New Post /wp-admin/post-new.php1,560 ▲2718.35 ▼4.79599.56 ▼83.4265.18 ▲9.50
Media Library /wp-admin/upload.php1,404 ▲164.19 ▼0.0295.11 ▼11.3443.08 ▼3.91

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/mona-here-map-embed/mona-here-map-embed.php
    • > /wp-content/plugins/mona-here-map-embed/templates/footer.php
    • > /wp-content/plugins/mona-here-map-embed/templates/header.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/mona-here-map-embed/templates/home.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: location, maps, here map, shortcode, mapping...

mona-here-map-embed/mona-here-map-embed.php Passed 13 tests

This is the main PHP file of "Mona HERE map Embed" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
113 characters long description:
This simple but powerful plugin will help you sharing information about your favorite places and to display maps.

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
Everything looks great! No dangerous files found in this plugin5,103 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS31,08484,811
PHP43933188
JavaScript22610104

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.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

It is recommended to compress PNG files in your plugin to 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/map-marker.png2.07KB2.10KB0.00%