Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▼5.77ms] Passed 4 tests
A check of server-side resources used by Brikshya Map
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 38.24 ▼5.91 |
Dashboard /wp-admin | 3.62 ▲0.31 | 47.37 ▼0.15 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 47.71 ▲2.21 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 84.98 ▼19.21 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 37.67 ▲4.80 |
Map API key /wp-admin/admin.php?page=settings | 3.44 | 32.25 |
Brikshya Map /wp-admin/admin.php?page=map | 3.45 | 33.81 |
Add Marker /wp-admin/admin.php?page=marker | 3.45 | 33.22 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 47 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_brikshya_map_table |
wp_brikshya_map_marker |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Brikshya Map
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲147 | 13.90 ▼0.68 | 8.07 ▲6.11 | 41.99 ▲1.63 |
Dashboard /wp-admin | 2,241 ▲56 | 5.87 ▲0.95 | 102.99 ▼0.75 | 29.54 ▼8.70 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.04 ▲0.07 | 40.42 ▼0.66 | 31.89 ▼4.71 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 23.06 ▼0.15 | 678.66 ▲18.43 | 57.62 ▲4.07 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.20 ▼0.00 | 98.09 ▼4.97 | 41.03 ▼2.61 |
Map API key /wp-admin/admin.php?page=settings | 805 | 2.04 | 25.24 | 20.62 |
Brikshya Map /wp-admin/admin.php?page=map | 932 | 2.06 | 26.14 | 22.19 |
Add Marker /wp-admin/admin.php?page=marker | 921 | 2.06 | 25.69 | 21.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 31× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/brikshya-map/admin/partials/index.php
- > /wp-content/plugins/brikshya-map/admin/partials/marker-delete.php
- > /wp-content/plugins/brikshya-map/includes/class-brikshya-map-deactivator.php
- > /wp-content/plugins/brikshya-map/admin/class-brikshya-map-admin.php
- > /wp-content/plugins/brikshya-map/public/partials/brikshya-map-public-display.php
- > /wp-content/plugins/brikshya-map/admin/partials/map-single.php
- > /wp-content/plugins/brikshya-map/admin/partials/map-new.php
- > /wp-content/plugins/brikshya-map/public/BKTMP_public_functions.php
- > /wp-content/plugins/brikshya-map/admin/class-form-handler.php
- > /wp-content/plugins/brikshya-map/admin/partials/marker-list.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid url: ""
- Screenshots: Add images for these screenshots: #1 (After Installing the plugin the error message will be shown with the link to save the google map API key), #2 (User can save the google map API key.), #3 (After Map Marker is added the list will be shown as bellow), #4 (Page to add new Map, users need to set the map center point then on clicking on the map new marker will be added ... The icon for marker can be selected at the bottom of the page.), #5 (Multiple Map can be registered and can be added with the sortcode.)
brikshya-map/brikshya-map.php Passed 13 tests
The main PHP script in "Brikshya Map" version 1.0.1 is automatically included on every request by WordPress
104 characters long description:
This plugin is developed to add google map easily on website. with sortcode user can add the google map.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,576 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 494 | 744 | 2,458 |
CSS | 2 | 25 | 11 | 103 |
JavaScript | 2 | 6 | 54 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 2 | 3.45% |
▷ Public methods | 51 | 87.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 12.07% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/orange_marker.png | 1.36KB | 1.31KB | ▼ 3.80% |
includes/screenshot3.png | 36.79KB | 9.42KB | ▼ 74.41% |
includes/screenshot1.png | 34.09KB | 8.96KB | ▼ 73.73% |
assets/brikshya-map-icon.png | 12.63KB | 5.11KB | ▼ 59.57% |
includes/screenshot4.png | 28.63KB | 7.18KB | ▼ 74.92% |