78% novo-map

Code Review | Novo-Map : your WP posts on custom google maps

WordPress plugin Novo-Map : your WP posts on custom google maps scored 78% from 54 tests.

About plugin

  • Plugin page: novo-map
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.2
  • WordPress version: 5.8.1
  • First release: Nov 22, 2017
  • Latest release: Nov 16, 2021
  • Number of updates: 18
  • Update frequency: every 81.2 days
  • Top authors: bluisier (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

1,000+ active / 18,960 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
Installer ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼132.95ms] Passed 4 tests

Analyzing server-side resources used by Novo-Map : your WP posts on custom google maps
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.08 ▲0.3639.62 ▲12.73
Dashboard /wp-admin3.40 ▲0.3449.57 ▲9.50
Posts /wp-admin/edit.php3.45 ▲0.3449.86 ▲7.93
Add New Post /wp-admin/post-new.php6.00 ▲0.57105.73 ▼550.64
Media Library /wp-admin/upload.php3.25 ▲0.2533.82 ▲1.41
Novo-Map /wp-admin/admin.php?page=novo-map3.8444.91
Markers /wp-admin/admin.php?page=novo-map-marker-logo3.3539.17

Server storage [IO: ▲0.42MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 93 new files
Database: 3 new tables, 2 new options
New tables
wp_novomap_marker
wp_novomap_marker_logo
wp_novomap_gmap
New WordPress options
novo-map_infobox_style_default
widget_novo_map_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Novo-Map : your WP posts on custom google maps
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,162 ▲56618.81 ▲3.2612.64 ▲3.1844.86 ▼5.98
Dashboard /wp-admin3,335 ▲4018.05 ▲2.12167.17 ▲15.98129.68 ▲16.22
Posts /wp-admin/edit.php3,161 ▲4224.56 ▲1.8786.61 ▲18.3198.47 ▲10.56
Add New Post /wp-admin/post-new.php2,711 ▲1,21124.77 ▲6.01437.54 ▲76.56121.02 ▲12.80
Media Library /wp-admin/upload.php1,933 ▲1265.52 ▲0.50121.35 ▼26.05131.29 ▲7.41
Novo-Map /wp-admin/admin.php?page=novo-map2,0104.1181.7688.55
Markers /wp-admin/admin.php?page=novo-map-marker-logo2,7454.0678.82102.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_novo_map_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 23× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/novo-map/includes/class-novo-map-widget.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/novo-map/public/partials/marker-logo-script.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/novo-map/admin/partials/marker-logo-admin-menu.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/novo-map/gutenberg/partials/novo-map-block.php:1
    • > PHP Notice
      Undefined variable: show_post_admin_menu in wp-content/plugins/novo-map/admin/partials/post-admin-menu.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/novo-map/public/partials/marker-script.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/novo-map/public/partials/infobox-styles/bgimage-css.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/novo-map/admin/partials/novo-map-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/novo-map/admin/partials/post-admin-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/novo-map/public/partials/infobox-styles/default-html.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=novo-map
    • > Javascript (severe) in unknown
    https://maps.googleapis.com/maps/api/js?v=3.47&key= 154:55 Uncaught Pe: Map: Expected mapDiv of type Element but was passed null.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Novo-Map : your WP posts on custom google maps" version 1.1.2
54 characters long description:
Display all your posts and pages on custom google maps

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
There were no executable files found in this plugin20,946 lines of code in 85 files:
LanguageFilesBlank linesComment linesLines of code
JSON20012,886
PHP416721,9293,805
JavaScript166418982,758
SVG22016808
CSS3876365
PO File1109139324

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.50
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods253
▷ Static methods72.77%
▷ Public methods24797.63%
▷ Protected methods00.00%
▷ Private methods62.37%
Functions31
▷ Named functions2580.65%
▷ Anonymous functions619.35%
Constants10
▷ Global constants10100.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
No PNG images were found in this plugin