89% stepbyteservice-openstreetmap

Code Review | OpenStreetMap for Gutenberg and WPBakery Page Builder (formerly Visual Composer)

WordPress plugin OpenStreetMap for Gutenberg and WPBakery Page Builder (formerly Visual Composer) scored89%from 54 tests.

About plugin

  • Plugin page: stepbyteservice-o...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Sep 5, 2019
  • Latest release: Oct 27, 2023
  • Number of updates: 35
  • Update frequency: every 43.3 days
  • Top authors: stepbyteservice (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /9,853 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼5.88ms] Passed 4 tests

Analyzing server-side resources used by OpenStreetMap for Gutenberg and WPBakery Page Builder (formerly Visual Composer)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2737.79 ▼3.18
Dashboard /wp-admin3.57 ▲0.2244.65 ▼17.79
Posts /wp-admin/edit.php3.68 ▲0.3248.39 ▲2.99
Add New Post /wp-admin/post-new.php6.15 ▲0.2680.53 ▼5.52
Media Library /wp-admin/upload.php3.49 ▲0.2539.17 ▲5.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 93 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by OpenStreetMap for Gutenberg and WPBakery Page Builder (formerly Visual Composer)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.401.62 ▼0.0937.58 ▼6.79
Dashboard /wp-admin2,195 ▲185.55 ▼0.0682.04 ▼17.4543.44 ▲0.77
Posts /wp-admin/edit.php2,100 ▲211.95 ▼0.0533.50 ▼6.8036.17 ▼2.95
Add New Post /wp-admin/post-new.php6,405 ▲4,87930.29 ▲6.79974.55 ▲306.1440.95 ▼23.87
Media Library /wp-admin/upload.php1,400 ▲64.25 ▲0.07110.45 ▲2.1245.96 ▼1.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

stepbyteservice-openstreetmap/sbs-wp-openstreetmap.php 77% from 13 tests

"OpenStreetMap for Gutenberg and WPBakery Page Builder (formerly Visual Composer)" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Plugin Name: Keep the plugin name shorter than 70 characters (currently 80 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("stepbyteservice-openstreetmap.php" instead of "sbs-wp-openstreetmap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin85,851 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
HTML37,2321842,907
JavaScript186,4707,88639,756
PHP81153351,265
CSS910763917
SVG412431
TypeScript190304371
PO File170169203
JSON1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity13.29
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods56
▷ Static methods2951.79%
▷ Public methods4987.50%
▷ Protected methods35.36%
▷ Private methods47.14%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
10 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/lib/leaflet/images/marker-icon-2x.png2.41KB2.52KB0.00%
assets/lib/leaflet-routing-machine/leaflet.routing.icons.png2.25KB2.62KB0.00%
assets/lib/leaflet/images/marker-shadow.png0.60KB1.16KB0.00%
assets/lib/leaflet/images/layers-2x.png1.23KB1.67KB0.00%
assets/lib/leaflet/images/layers.png0.68KB1.05KB0.00%