10% mapme

Code Review | Mapme

WordPress plugin Mapme scored10%from 54 tests.

About plugin

  • Plugin page: mapme
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 6.3.1
  • First release: Mar 31, 2015
  • Latest release: Feb 9, 2016
  • Number of updates: 21
  • Update frequency: every 15.0 days
  • Top authors: mapme (66.67%)ramiy (38.1%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,998 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/mapme/api.php+112
    The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence

Server metrics [RAM: ▼0.95MB] [CPU: ▼32.33ms] Passed 4 tests

A check of server-side resources used by Mapme
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.27 ▼4.34
Dashboard /wp-admin3.00 ▼0.3425.28 ▼32.19
Posts /wp-admin/edit.php3.00 ▼0.3623.01 ▼19.35
Add New Post /wp-admin/post-new.php3.00 ▼2.8921.58 ▼64.94
Media Library /wp-admin/upload.php3.00 ▼0.2321.48 ▼12.85
Mapme /wp-admin/options-general.php?page=mapme3.0024.63

Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Mapme
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▼0.421.61 ▲0.0444.46 ▲3.06
Dashboard /wp-admin2,204 ▲275.56 ▼0.0297.65 ▲11.5344.19 ▲3.78
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0233.35 ▼4.1434.50 ▼2.80
Add New Post /wp-admin/post-new.php1,531 ▲523.45 ▲0.26656.05 ▼10.3973.42 ▼2.51
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.08100.52 ▼6.1045.32 ▼1.76
Mapme /wp-admin/options-general.php?page=mapme1,0321.9425.5528.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/mapme/admin.php+23
    Undefined variable: page
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=mapme
    • > Notice in wp-content/plugins/mapme/admin.php+23
    Undefined variable: page
    • > GET request to /wp-admin/options-general.php?page=mapme
    • > Notice in wp-content/plugins/mapme/admin.php+186
    Trying to access array offset on value of type bool

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=mapme
    • > Network (severe)
    wp-content/plugins/mapme/css/setting.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=mapme
    • > Network (severe)
    wp-content/plugins/mapme/js/script.js - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: shortcode, shortcodes, mapme, maps, map...

mapme/index.php 85% from 13 tests

The main file in "Mapme" v. 1.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mapme.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)

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
Good job! No executable or dangerous file extensions detected664 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PO File1242769

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions25100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo1.png2.13KB1.26KB▼ 40.70%
logo3.png1.42KB0.66KB▼ 53.42%
logo2.png1.67KB0.91KB▼ 45.42%
screenshot-2.png15.91KB6.38KB▼ 59.89%
screenshot-1.png99.32KB34.66KB▼ 65.10%