78% events-manager-openstreetmap

Code Review | Events Manager OpenStreetMap

WordPress plugin Events Manager OpenStreetMap scored78%from 54 tests.

About plugin

  • Plugin page: events-manager-op...
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 30, 2021
  • Latest release: Oct 27, 2023
  • Number of updates: 48
  • Update frequency: every 17.1 days
  • Top authors: Florent73 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,966 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.31MB] [CPU: ▼5.97ms] Passed 4 tests

Server-side resources used by Events Manager OpenStreetMap
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3645.22 ▲7.07
Dashboard /wp-admin3.73 ▲0.4250.37 ▲4.24
Posts /wp-admin/edit.php3.80 ▲0.4458.66 ▲14.11
Add New Post /wp-admin/post-new.php3.52 ▼2.3746.72 ▼38.65
Media Library /wp-admin/upload.php3.59 ▲0.3636.78 ▲3.45

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 176 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
map_path_temp
em_generate_map
widget_theysaidso_widget
em_openstreetmap_setting
theysaidso_admin_options
widget_recent-posts
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

A check of browser resources used by Events Manager OpenStreetMap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲20314.43 ▲0.081.86 ▲0.2741.47 ▲0.67
Dashboard /wp-admin2,327 ▲1536.23 ▲0.56104.83 ▲17.1736.98 ▼2.72
Posts /wp-admin/edit.php2,266 ▲1663.49 ▲1.4756.96 ▲20.5331.41 ▼4.06
Add New Post /wp-admin/post-new.php45 ▼1,4810.42 ▼22.730.06 ▼687.969.43 ▼47.36
Media Library /wp-admin/upload.php1,406 ▲64.27 ▲0.0390.73 ▼2.1443.49 ▼2.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 10 options in the database
    • db_upgraded
    • map_path_temp
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • wp_calendar_block_has_published_posts
    • em_generate_map
    • recovery_mode_email_last_sent

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 5× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/events-manager-openstreetmap/admin/settings.php
    • > /wp-content/plugins/events-manager-openstreetmap/admin/home.php
    • > /wp-content/plugins/events-manager-openstreetmap/events-manager-openstreetmap.php
    • > /wp-content/plugins/events-manager-openstreetmap/includes/metabox.php
    • > /wp-content/plugins/events-manager-openstreetmap/includes/map.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-manager-openstreetmap/includes/taxonomy.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #4 (Admin Settings Map), #5 (Categories Events Map)
The official readme.txt might help

events-manager-openstreetmap/events-manager-openstreetmap.php 92% from 13 tests

The main file in "Events Manager OpenStreetMap" v. 2.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,797 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP74832232,206
JavaScript102051461,887
PO File1283395432
CSS9253271
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity59.67
▷ Minimum class complexity5.00
▷ Maximum class complexity168.00
Average method complexity7.07
▷ Minimum method complexity1.00
▷ Maximum method complexity85.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods620.69%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
135 compressed PNG files occupy 2.95MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/qrcode.png200.57KB76.84KB▼ 61.69%
images/markers/astrology.png1.57KB1.53KB▼ 2.55%
images/markers/marker-new1_12.png1.34KB1.34KB0.00%
images/markers/mobile-phones.png1.23KB1.24KB0.00%
images/markers/engineering.png1.45KB1.46KB0.00%