Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.87ms] Passed 4 tests
Server-side resources used by Interactive Bangladesh Map
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.11 ▼7.79 |
Dashboard /wp-admin | 3.38 ▲0.07 | 48.31 ▼1.54 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 50.64 ▲3.60 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 98.67 ▼4.05 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.79 ▲1.92 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 18 new options
New WordPress options |
---|
widget_free_bangladesh_map_widget |
freefreebangladeshhtml5map_nameFontSize |
freefreebangladeshhtml5map_state_info_8 |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
freefreebangladeshhtml5map_state_info_2 |
theysaidso_admin_options |
freefreebangladeshhtml5map_state_info_3 |
freefreebangladeshhtml5map_state_info_6 |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Interactive Bangladesh Map
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲154 | 13.62 ▼0.68 | 8.14 ▲6.38 | 45.80 ▲4.76 |
Dashboard /wp-admin | 2,230 ▲42 | 4.88 ▼1.02 | 108.29 ▼1.11 | 77.25 ▲35.95 |
Posts /wp-admin/edit.php | 2,121 ▲35 | 2.06 ▲0.04 | 38.12 ▲2.87 | 35.25 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,689 ▲160 | 22.11 ▲3.65 | 647.98 ▲26.51 | 55.67 ▼6.94 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.31 ▲0.14 | 101.13 ▲1.46 | 84.36 ▲37.91 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_free_bangladesh_map_widget
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/interactive-bangladesh-map/bangladeshmap.php:14
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: javascript, map, maps, interactive map, svg map...
interactive-bangladesh-map/bangladeshmap.php 92% from 13 tests
"Interactive Bangladesh Map" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("interactive-bangladesh-map.php" instead of "bangladeshmap.php")
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
Everything looks great! No dangerous files found in this plugin634 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 95 | 23 | 324 |
JavaScript | 1 | 37 | 23 | 198 |
JSON | 1 | 0 | 0 | 66 |
CSS | 2 | 14 | 4 | 46 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
files/img/bangladesh.png | 64.87KB | 21.79KB | ▼ 66.41% |
files/img/icon.png | 0.87KB | 0.87KB | ▼ 0.67% |