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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 37.79 ▼3.18 |
Dashboard /wp-admin | 3.57 ▲0.22 | 44.65 ▼17.79 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 48.39 ▲2.99 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 80.53 ▼5.52 |
Media Library /wp-admin/upload.php | 3.49 ▲0.25 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.22 ▼0.40 | 1.62 ▼0.09 | 37.58 ▼6.79 |
Dashboard /wp-admin | 2,195 ▲18 | 5.55 ▼0.06 | 82.04 ▼17.45 | 43.44 ▲0.77 |
Posts /wp-admin/edit.php | 2,100 ▲21 | 1.95 ▼0.05 | 33.50 ▼6.80 | 36.17 ▼2.95 |
Add New Post /wp-admin/post-new.php | 6,405 ▲4,879 | 30.29 ▲6.79 | 974.55 ▲306.14 | 40.95 ▼23.87 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.25 ▲0.07 | 110.45 ▲2.12 | 45.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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 3 | 7,232 | 18 | 42,907 |
JavaScript | 18 | 6,470 | 7,886 | 39,756 |
PHP | 8 | 115 | 335 | 1,265 |
CSS | 9 | 107 | 63 | 917 |
SVG | 4 | 1 | 2 | 431 |
TypeScript | 19 | 0 | 304 | 371 |
PO File | 1 | 70 | 169 | 203 |
JSON | 1 | 0 | 0 | 1 |
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 code | 0.37 |
Average class complexity | 13.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 29 | 51.79% |
▷ Public methods | 49 | 87.50% |
▷ Protected methods | 3 | 5.36% |
▷ Private methods | 4 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/lib/leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
assets/lib/leaflet-routing-machine/leaflet.routing.icons.png | 2.25KB | 2.62KB | 0.00% |
assets/lib/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/lib/leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
assets/lib/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |