84% map-me

Code Review | Map Me

WordPress plugin Map Me scored84%from 54 tests.

About plugin

  • Plugin page: map-me
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 26, 2015
  • Latest release: Feb 6, 2023
  • Number of updates: 57
  • Update frequency: every 45.6 days
  • Top authors: MarinMatosevic (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

600+ active /27,049 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.20MB] [CPU: ▼6.03ms] Passed 4 tests

A check of server-side resources used by Map Me
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2041.73 ▼0.88
Dashboard /wp-admin3.51 ▲0.1748.44 ▼14.93
Posts /wp-admin/edit.php3.62 ▲0.2747.93 ▼1.26
Add New Post /wp-admin/post-new.php6.09 ▲0.2187.31 ▼7.05
Media Library /wp-admin/upload.php3.43 ▲0.2140.93 ▲7.65
Help /wp-admin/admin.php?page=mm_menu_page_handle3.4032.56
Locations /wp-admin/edit.php?post_type=mm3.4837.33
Settings /wp-admin/admin.php?page=mm_plugin_settings3.4034.13

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 264 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
mm_plugin_settings
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
mm_map_locations_formated

Browser metrics Passed 4 tests

Checking browser requirements for Map Me
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲3714.24 ▼0.131.70 ▼0.1445.19 ▲3.35
Dashboard /wp-admin2,226 ▲465.53 ▼0.1683.45 ▼0.7938.30 ▼1.30
Posts /wp-admin/edit.php2,131 ▲312.03 ▲0.0134.65 ▲0.9833.66 ▼3.88
Add New Post /wp-admin/post-new.php1,557 ▲2923.18 ▼0.02642.62 ▲33.9066.24 ▲6.05
Media Library /wp-admin/upload.php1,431 ▲284.15 ▼0.0598.59 ▲3.0845.90 ▲2.89
Help /wp-admin/admin.php?page=mm_menu_page_handle8182.0224.0935.40
Locations /wp-admin/edit.php?post_type=mm1,1191.9730.5329.64
Settings /wp-admin/admin.php?page=mm_plugin_settings1,2372.0022.3033.07

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
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • mm_plugin_settings
    • mm_map_locations_formated
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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
Good news, no errors were detected

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/map-me/admin/plugin_menu_page.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/map-me/admin/checker.php:111

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

map-me/map-me.php Passed 13 tests

This is the main PHP file of "Map Me" version 2.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
Google Maps Plugin. Easy, fast and efficient way to embed google map into your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,238 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7285791,047
JavaScript3476109
CSS214082

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions40
▷ Named functions40100.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
250 PNG files occupy 0.32MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icons/bowling.png1.63KB1.32KB▼ 19.05%
assets/icons/handball2.png1.04KB0.87KB▼ 17.03%
assets/icons/mine-closed.png1.17KB1.03KB▼ 12.04%
assets/icons/boardercross.png4.00KB1.01KB▼ 74.85%
assets/icons/bedandbreakfast1.png1.22KB1.09KB▼ 9.96%