84% multiple-map-marker-filter

Code Review | Multiple Map Marker Filter

WordPress plugin Multiple Map Marker Filter scored84%from 54 tests.

About plugin

  • Plugin page: multiple-map-mark...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 9, 2016
  • Latest release: Jun 29, 2016
  • Number of updates: 8
  • Update frequency: every 2.5 days
  • Top authors: kiranpatil353 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /887 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.08MB] [CPU: ▼4.34ms] Passed 4 tests

A check of server-side resources used by Multiple Map Marker Filter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.46 ▼4.57
Dashboard /wp-admin3.39 ▲0.0846.57 ▼5.76
Posts /wp-admin/edit.php3.44 ▲0.0846.95 ▼0.87
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.00 ▼6.15
Media Library /wp-admin/upload.php3.31 ▲0.0839.50 ▲3.94
Map Categories /wp-admin/edit-tags.php?taxonomy=map_category3.3036.96
New Marker /wp-admin/admin.php?page=addnew_marker3.2829.63
Map Marker Settings /wp-admin/options-general.php?page=mf_map_filter_settings3.2834.54
Map Markers /wp-admin/admin.php?page=map-markers3.2834.83

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables
wp_multiple_map_markers_data
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multiple Map Marker Filter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲9313.92 ▼0.3526.00 ▲24.0841.66 ▼2.43
Dashboard /wp-admin2,235 ▲615.61 ▲0.0584.04 ▼3.3341.76 ▼4.00
Posts /wp-admin/edit.php2,154 ▲542.00 ▼0.1436.92 ▼8.7437.62 ▼4.52
Add New Post /wp-admin/post-new.php1,557 ▲2923.46 ▲0.45708.08 ▲88.1359.36 ▼2.58
Media Library /wp-admin/upload.php1,440 ▲464.23 ▲0.0594.93 ▼5.5642.06 ▼1.68
Map Categories /wp-admin/edit-tags.php?taxonomy=map_category1,3082.1226.7130.52
New Marker /wp-admin/admin.php?page=addnew_marker9082.0022.8729.95
Map Marker Settings /wp-admin/options-general.php?page=mf_map_filter_settings8602.0123.8228.57
Map Markers /wp-admin/admin.php?page=map-markers8372.0323.5124.93

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/multiple-map-marker-filter/settings-page-markers.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/multiple-map-marker-filter/settings-page-markers.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
8 plugin tags: maps marker, multiple, multiple marker, category map filter, custom icon maps...

multiple-map-marker-filter/index.php 85% from 13 tests

The principal PHP file in "Multiple Map Marker Filter" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("multiple-map-marker-filter.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin394 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP27132388
JavaScript1106

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions17
▷ Named functions17100.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
PNG images were not found in this plugin