68% venomaps

Code Review | VenoMaps - geo map and custom markers

WordPress plugin VenoMaps - geo map and custom markers scored68%from 54 tests.

About plugin

  • Plugin page: venomaps
  • Plugin version: 1.2.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 8, 2020
  • Latest release: Oct 23, 2023
  • Number of updates: 26
  • Update frequency: every 48.6 days
  • Top authors: nicolafranchini (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /2,960 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼4.07ms] Passed 4 tests

A check of server-side resources used by VenoMaps - geo map and custom markers
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2538.70 ▲2.41
Dashboard /wp-admin3.54 ▲0.2443.36 ▼3.85
Posts /wp-admin/edit.php3.66 ▲0.3143.69 ▼1.51
Add New Post /wp-admin/post-new.php6.13 ▲0.2582.38 ▼11.58
Media Library /wp-admin/upload.php3.47 ▲0.2433.77 ▲0.67
Add new /wp-admin/post-new.php?post_type=venomaps3.5040.21
VenoMaps /wp-admin/options-general.php?page=venomaps3.4430.70
All maps /wp-admin/edit.php?post_type=venomaps3.5135.48

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for VenoMaps - geo map and custom markers
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.35 ▲0.101.87 ▲0.1945.37 ▲2.87
Dashboard /wp-admin2,226 ▲495.48 ▼0.1982.22 ▼6.9339.97 ▼2.94
Posts /wp-admin/edit.php2,131 ▲311.99 ▲0.0434.47 ▼3.4236.75 ▼0.66
Add New Post /wp-admin/post-new.php6,221 ▲4,69519.28 ▼3.71901.17 ▲228.2351.55 ▲0.62
Media Library /wp-admin/upload.php1,431 ▲284.22 ▲0.0695.76 ▲0.5141.72 ▼2.90
Add new /wp-admin/post-new.php?post_type=venomaps2,4088.21213.4098.10
VenoMaps /wp-admin/options-general.php?page=venomaps1,1002.0225.4631.01
All maps /wp-admin/edit.php?post_type=venomaps1,0951.9529.9229.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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/post-new.php?post_type=venomaps
    • > Notice in wp-content/plugins/venomaps/include/class-venomaps-plugin.php+561
    Undefined index: map_key
    • > GET request to /wp-admin/post-new.php?post_type=venomaps
    • > Warning in wp-content/plugins/venomaps/include/class-venomaps-plugin.php+561
    Invalid argument supplied for foreach()

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/venomaps/uninstall.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/venomaps/include/class-venomaps-options.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/venomaps/include/class-venomaps-options.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/venomaps/include/class-venomaps-options.php:39

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 Passed 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
5 plugin tags: places, location, map, maps, openlayers

venomaps/venomaps.php Passed 13 tests

The main PHP script in "VenoMaps - geo map and custom markers" version 1.2.3 is automatically included on every request by WordPress
124 characters long description:
Create maps with custom styles, multiple markers, clusters, info windows with rich text editors. Widget and Block available.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
It is important to fix the following items
  • For security reasons, never distribute binary or executable files with your plugin
    • .command - Terminal Command in macOS
      • wp-content/plugins/venomaps/include/dev/build.command
2,457 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP4130188870
JavaScript59851612
CSS46215545
PO File3162186419
SVG20111

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity45.00
▷ Minimum class complexity22.00
▷ Maximum class complexity68.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2793.10%
▷ Protected methods00.00%
▷ Private methods26.90%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected