Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > User error in wp-content/plugins/notify-slack-bot/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16.
Server metrics [RAM: ▼1.93MB] [CPU: ▼59.18ms] Passed 4 tests
This is a short check of server-side resources used by Notify Slack Bot
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 7.95 ▼37.75 |
Dashboard /wp-admin | 2.07 ▼1.23 | 6.75 ▼49.00 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.25 ▼44.85 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 5.33 ▼105.10 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.88 ▼32.57 |
Server storage [IO: ▲11.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 789 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Notify Slack Bot
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲202 | 18.51 ▲4.16 | 1.97 ▼0.01 | 45.89 ▼0.30 |
Dashboard /wp-admin | 2,376 ▲199 | 9.04 ▲3.37 | 212.64 ▲112.07 | 40.86 ▼2.41 |
Posts /wp-admin/edit.php | 2,310 ▲210 | 6.24 ▲4.27 | 83.54 ▲44.12 | 32.09 ▼2.58 |
Add New Post /wp-admin/post-new.php | 1,593 ▲60 | 25.50 ▲2.49 | 730.46 ▲26.57 | 50.39 ▼0.93 |
Media Library /wp-admin/upload.php | 1,447 ▲50 | 6.65 ▲2.47 | 113.56 ▲2.25 | 40.13 ▼9.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > User error in wp-content/plugins/notify-slack-bot/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16.
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/notify-slack-bot/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 319× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Maknz\\Slack\\BlockElement\\AbstractStaticSelect' not found in wp-content/plugins/notify-slack-bot/vendor/alek13/slack/src/BlockElement/MultiStaticSelect.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/notify-slack-bot/vendor/htmlburger/carbon-fields/core/Datastore/User_Meta_Datastore.php:10
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16. in wp-content/plugins/notify-slack-bot/vendor/composer/platform_check.php on line 24
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/notify-slack-bot/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Container\\Fulfillable\\Fulfillable' not found in wp-content/plugins/notify-slack-bot/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Fulfillable_Collection.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/notify-slack-bot/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/notify-slack-bot/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Maknz\\Slack\\BlockElement\\MultiDynamicSelect' not found in wp-content/plugins/notify-slack-bot/vendor/alek13/slack/src/BlockElement/MultiExternalSelect.php:7
- > PHP Fatal error
Uncaught Error: Class 'Maknz\\Slack\\Block\\ElementsBlock' not found in wp-content/plugins/notify-slack-bot/vendor/alek13/slack/src/Block/Context.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/notify-slack-bot/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php:6
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: slack, bot
notify-slack-bot/notify-slack-bot.php 92% from 13 tests
The entry point to "Notify Slack Bot" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
No dangerous file extensions were detected52,824 lines of code in 725 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 427 | 5,878 | 16,163 | 23,875 |
JavaScript | 174 | 7,099 | 10,930 | 16,200 |
Markdown | 23 | 1,482 | 0 | 4,328 |
PO File | 29 | 898 | 1,111 | 2,425 |
CSS | 7 | 240 | 1,157 | 2,221 |
Sass | 49 | 365 | 3 | 1,868 |
JSON | 13 | 0 | 0 | 1,784 |
YAML | 3 | 31 | 3 | 123 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 32 | |
Traits | 9 | |
Classes | 358 | |
▷ Abstract classes | 25 | 6.98% |
▷ Concrete classes | 333 | 93.02% |
▷ Final classes | 37 | 11.11% |
Methods | 2,102 | |
▷ Static methods | 241 | 11.47% |
▷ Public methods | 1,759 | 83.68% |
▷ Protected methods | 215 | 10.23% |
▷ Private methods | 128 | 6.09% |
Functions | 234 | |
▷ Named functions | 53 | 22.65% |
▷ Anonymous functions | 181 | 77.35% |
Constants | 108 | |
▷ Global constants | 5 | 4.63% |
▷ Class constants | 103 | 95.37% |
▷ Public constants | 92 | 89.32% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin