Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▲3.60ms] 75% from 4 tests
A check of server-side resources used by CBX Map for Google Map & OpenStreetMap
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 2,090.26ms on /wp-admin/edit.php?post_type=cbxgooglemap&page=cbxgooglemap-help-support)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.34 ▲5.20 |
Dashboard /wp-admin | 3.42 ▲0.12 | 47.05 ▲0.07 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.08 ▲2.83 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 96.85 ▲15.08 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 40.92 ▲6.30 |
Setting /wp-admin/edit.php?post_type=cbxgooglemap&page=cbxgooglemapsettings | 3.39 | 46.84 |
Maps /wp-admin/edit.php?post_type=cbxgooglemap | 3.39 | 37.93 |
Add New /wp-admin/post-new.php?post_type=cbxgooglemap | 3.46 | 49.25 |
Helps & Updates /wp-admin/edit.php?post_type=cbxgooglemap&page=cbxgooglemap-help-support | 5.66 | 2,090.26 |
Server storage [IO: ▲1.01MB] [DB: ▲0.16MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 147 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_cbxgooglemap-widget |
widget_theysaidso_widget |
cbxgooglemap_demo |
theysaidso_admin_options |
widget_recent-comments |
cbxgooglemap_general |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by CBX Map for Google Map & OpenStreetMap
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲49 | 14.75 ▲0.34 | 1.79 ▲0.10 | 42.91 ▼2.80 |
Dashboard /wp-admin | 2,241 ▲32 | 4.85 ▼0.00 | 107.49 ▲11.33 | 42.59 ▲4.31 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 1.99 ▼0.04 | 39.04 ▲4.63 | 35.96 ▲2.38 |
Add New Post /wp-admin/post-new.php | 6,664 ▲5,131 | 23.66 ▲0.44 | 970.28 ▲299.65 | 61.48 ▲2.27 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.32 ▲0.02 | 95.25 ▼5.68 | 45.74 ▼3.14 |
Setting /wp-admin/edit.php?post_type=cbxgooglemap&page=cbxgooglemapsettings | 1,408 | 4.01 | 63.59 | 57.08 |
Maps /wp-admin/edit.php?post_type=cbxgooglemap | 1,101 | 1.99 | 31.80 | 28.91 |
Add New /wp-admin/post-new.php?post_type=cbxgooglemap | 1,957 | 4.24 | 80.10 | 43.41 |
Helps & Updates /wp-admin/edit.php?post_type=cbxgooglemap&page=cbxgooglemap-help-support | 1,639 | 2.07 | 23.88 | 43.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.16MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_cbxgooglemap-widget
- widget_recent-posts
- cbxgooglemap_demo
- cbxgooglemap_general
- can_compress_scripts
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
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #10, #11, #12, #7, #8, #9 in cbxgooglemap/assets to your readme.txt
cbxgooglemap/cbxgooglemap.php Passed 13 tests
"CBX Map for Google Map & OpenStreetMap" version 1.1.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
Easy responsive embed of google map and openstreet map
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected16,301 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 71 | 2,695 | 791 | 10,596 |
PHP | 22 | 834 | 1,231 | 3,062 |
CSS | 10 | 95 | 59 | 1,545 |
Sass | 5 | 196 | 3 | 1,036 |
SVG | 5 | 0 | 4 | 62 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 35.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 85.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 17 | 15.60% |
▷ Public methods | 101 | 92.66% |
▷ Protected methods | 3 | 2.75% |
▷ Private methods | 5 | 4.59% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
20 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |
assets/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.27KB | 0.14KB | ▼ 47.84% |
assets/img/move.png | 2.81KB | 0.13KB | ▼ 95.49% |
assets/css/ui-lightness/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
widgets/elementor-elements/elementor-icon/map.png | 2.70KB | 2.95KB | 0.00% |