Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.41ms] Passed 4 tests
Server-side resources used by Map Block for Mapbox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.76 ▼3.72 |
Dashboard /wp-admin | 3.34 ▼0.01 | 49.79 ▼12.26 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 53.68 ▲0.33 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 98.73 ▲6.90 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 34.00 ▼1.98 |
Map Block for Mapbox /wp-admin/admin.php?page=mapbox-block-settings | 3.23 | 33.25 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Map Block for Mapbox: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲65 | 14.94 ▲0.66 | 22.24 ▲20.35 | 45.56 ▼3.52 |
Dashboard /wp-admin | 2,195 ▲18 | 5.59 ▼0.06 | 91.05 ▲5.11 | 37.06 ▼3.20 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▼0.04 | 39.78 ▲1.99 | 36.35 ▲2.43 |
Add New Post /wp-admin/post-new.php | 6,218 ▲4,692 | 22.56 ▼0.97 | 917.31 ▲286.91 | 67.05 ▲17.81 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▲0.03 | 102.98 ▼0.75 | 44.21 ▲0.98 |
Map Block for Mapbox /wp-admin/admin.php?page=mapbox-block-settings | 791 | 1.99 | 22.86 | 26.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
4 plugin tags: map, embed, block, mapbox
map-block-for-mapbox/map-block-mapbox.php 92% from 13 tests
Analyzing the main PHP file in "Map Block for Mapbox" version 1.0.1
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("map-block-for-mapbox.php" instead of "map-block-mapbox.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin412 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 37 | 102 | 225 |
PHP | 2 | 30 | 75 | 134 |
Sass | 3 | 6 | 0 | 38 |
CSS | 2 | 1 | 23 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
No PNG images were found in this plugin