Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.76ms] Passed 4 tests
A check of server-side resources used by Mapbox For WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 37.80 ▼5.78 |
Dashboard /wp-admin | 3.44 ▲0.14 | 47.88 ▼2.79 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 50.14 ▲2.45 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 95.03 ▼0.53 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.76 ▲2.06 |
Server storage [IO: ▲2.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 243 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
mbwp_public_token |
mbwp_default_style |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Mapbox For WP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲107 | 16.91 ▲2.28 | 34.79 ▲32.60 | 39.39 ▼4.95 |
Dashboard /wp-admin | 2,225 ▲34 | 4.86 ▼0.01 | 109.23 ▲2.73 | 45.01 ▲6.06 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.05 ▲0.05 | 41.01 ▲2.76 | 34.75 ▲1.06 |
Add New Post /wp-admin/post-new.php | 6,279 ▲4,742 | 24.04 ▲0.75 | 909.16 ▲194.76 | 66.07 ▲11.80 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.18 ▲0.06 | 92.87 ▼24.58 | 41.86 ▼6.04 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- mbwp_public_token
- mbwp_default_style
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 203× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\MBWP\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mapbox-for-wp/vendor_prefixed/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:12
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\MBWP\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mapbox-for-wp/vendor_prefixed/composer/installers/src/Composer/Installers/PhpBBInstaller.php:10
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\MBWP\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mapbox-for-wp/vendor_prefixed/composer/installers/src/Composer/Installers/ShopwareInstaller.php:14
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mapbox-for-wp/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mapbox-for-wp/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\MBWP\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mapbox-for-wp/vendor_prefixed/composer/installers/src/Composer/Installers/TuskInstaller.php:13
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\MBWP\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mapbox-for-wp/vendor_prefixed/composer/installers/src/Composer/Installers/CakePHPInstaller.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mapbox-for-wp/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\MBWP\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mapbox-for-wp/vendor_prefixed/composer/installers/src/Composer/Installers/Symfony1Installer.php:15
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\MBWP\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mapbox-for-wp/vendor_prefixed/composer/installers/src/Composer/Installers/WolfCMSInstaller.php:10
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: block, maps, map, mapbox, interactive map...
mapbox-for-wp/mapbox-for-wp.php Passed 13 tests
The main PHP file in "Mapbox For WP" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
87 characters long description:
Integrate your maps from Mapbox into WordPress using a simple yet powerful Mapbox Block
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected5,751 lines of code in 237 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 224 | 933 | 2,121 | 5,001 |
JSON | 4 | 0 | 0 | 341 |
Markdown | 2 | 60 | 0 | 283 |
YAML | 3 | 31 | 3 | 123 |
JavaScript | 2 | 0 | 0 | 2 |
CSS | 2 | 1 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 2.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 211 | |
▷ Abstract classes | 2 | 0.95% |
▷ Concrete classes | 209 | 99.05% |
▷ Final classes | 1 | 0.48% |
Methods | 244 | |
▷ Static methods | 20 | 8.20% |
▷ Public methods | 156 | 63.93% |
▷ Protected methods | 68 | 27.87% |
▷ Private methods | 20 | 8.20% |
Functions | 18 | |
▷ Named functions | 5 | 27.78% |
▷ Anonymous functions | 13 | 72.22% |
Constants | 14 | |
▷ Global constants | 6 | 42.86% |
▷ Class constants | 8 | 57.14% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin