93% add-multiple-marker

Code Review | Add Multiple Marker

WordPress plugin Add Multiple Marker scored 93% from 54 tests.

About plugin

  • Plugin page: add-multiple-marker
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8.1
  • WordPress version: 5.9.2
  • First release: Dec 6, 2018
  • Latest release: Oct 4, 2021
  • Number of updates: 7
  • Update frequency: every 150.9 days
  • Top authors: krishaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,413 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼305.67ms] Passed 4 tests

An overview of server-side resources used by Add Multiple Marker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0671.77 ▲14.83
Dashboard /wp-admin3.48 ▲0.0842.31 ▲0.82
Posts /wp-admin/edit.php3.71 ▲0.0741.77 ▲1.66
Add New Post /wp-admin/post-new.php6.95 ▼0.0299.47 ▼1,223.69
Media Library /wp-admin/upload.php3.36 ▲0.0725.91 ▼1.46
Add Multiple Marker /wp-admin/admin.php?page=addmultiplemarker3.3428.59
Map integration /wp-admin/admin.php?page=amm-map-integration3.3925.02

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 79 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Add Multiple Marker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,856 ▲13415.57 ▼0.118.25 ▲2.342.39 ▲0.04
Dashboard /wp-admin2,951 ▲906.88 ▲0.75119.69 ▼15.35174.99 ▲14.31
Posts /wp-admin/edit.php2,762 ▲1053.54 ▲0.3072.14 ▲6.58176.10 ▲34.06
Add New Post /wp-admin/post-new.php1,714 ▲5316.10 ▲0.08415.48 ▲8.02164.86 ▲8.18
Media Library /wp-admin/upload.php1,769 ▲716.00 ▲0.50131.00 ▼8.76224.58 ▲37.91
Add Multiple Marker /wp-admin/admin.php?page=addmultiplemarker1,4953.2767.23173.01
Map integration /wp-admin/admin.php?page=amm-map-integration1,3753.3066.32149.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 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 50% from 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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/add-multiple-marker/admin/map-integration.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/add-multiple-marker/admin/admin-options.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-multiple-marker/functions.php:185

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
10 plugin tags: shortcode, multi marker, google maps, custom marker, map marker...

add-multiple-marker/addmultiplemarker.php 77% from 13 tests

The main PHP file in "Add Multiple Marker" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 206 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("add-multiple-marker.php" instead of "addmultiplemarker.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin121,420 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
SVG1701118,446
JavaScript41912261,227
CSS33116803
PHP53195461
HTML100389
PO File1383994

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.54
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/defaultmarker.png2.09KB1.47KB▼ 29.61%
admin/images/amm-logo.png12.10KB6.33KB▼ 47.73%
admin/images/marker3.png2.52KB1.55KB▼ 38.38%
admin/images/marker1.png2.47KB1.66KB▼ 32.65%
admin/images/dash-icon.png0.35KB0.32KB▼ 6.78%