80% mapmap

Code Review | MapMap

WordPress plugin MapMap scored80%from 54 tests.

About plugin

  • Plugin page: mapmap
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9.3
  • WordPress version: 6.3.1
  • First release: Nov 10, 2016
  • Latest release: Apr 7, 2022
  • Number of updates: 4
  • Update frequency: every 493.0 days
  • Top authors: sugiartha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /532 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.72ms] Passed 4 tests

Server-side resources used by MapMap
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0526.22 ▼14.98
Dashboard /wp-admin3.44 ▲0.0942.04 ▼17.28
Posts /wp-admin/edit.php3.55 ▲0.1946.04 ▲5.05
Add New Post /wp-admin/post-new.php6.02 ▲0.1398.02 ▼2.18
Media Library /wp-admin/upload.php3.36 ▲0.1332.65 ▲3.58
MapMap /wp-admin/options-general.php?page=mapmap3.3330.05

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for MapMap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲14114.21 ▼0.1425.99 ▲24.1436.36 ▼8.36
Dashboard /wp-admin2,202 ▲225.59 ▼0.0596.11 ▲4.8442.95 ▲4.25
Posts /wp-admin/edit.php2,086 ▼142.04 ▲0.0333.67 ▼7.4031.84 ▼4.31
Add New Post /wp-admin/post-new.php1,529 ▼623.12 ▲5.14639.57 ▲20.2951.20 ▼20.25
Media Library /wp-admin/upload.php1,407 ▲74.39 ▲0.1792.66 ▼8.7540.91 ▼1.74
MapMap /wp-admin/options-general.php?page=mapmap9092.0125.1029.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/mapmap/mapmap.php+58
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Congratulations! This plugin passed the SRP test

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: google map wizard, multiple maps, map shortcode, map widget, popup map

mapmap/mapmap.php 92% from 13 tests

The main file in "MapMap" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 189 characters long)

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
Everything looks great! No dangerous files found in this plugin708 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2153125659
CSS17049

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity110.00
▷ Minimum class complexity110.00
▷ Maximum class complexity110.00
Average method complexity5.54
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods1458.33%
▷ Protected methods1041.67%
▷ 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
There were not PNG files found in your plugin