Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▲3.59ms] Passed 4 tests
A check of server-side resources used by Slack Notifications by dorzki
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 43.12 ▲4.70 |
Dashboard /wp-admin | 3.95 ▲0.64 | 54.09 ▲7.85 |
Posts /wp-admin/edit.php | 4.00 ▲0.65 | 51.18 ▲6.34 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 96.79 ▼1.49 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 39.40 ▲4.81 |
Support /wp-admin/admin.php?page=slack-notifications-support | 3.79 | 38.87 |
General /wp-admin/admin.php?page=slack-notifications-general | 3.79 | 35.52 |
Notifications /wp-admin/admin.php?page=slack-notifications-notifications | 3.79 | 40.97 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
slack_version |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
slack_test_integration |
slack_notifications |
Browser metrics Passed 4 tests
A check of browser resources used by Slack Notifications by dorzki
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,975 ▲229 | 14.83 ▲0.56 | 1.74 ▲0.07 | 42.76 ▲0.65 |
Dashboard /wp-admin | 2,378 ▲187 | 6.42 ▲0.39 | 133.43 ▲29.89 | 42.32 ▲1.08 |
Posts /wp-admin/edit.php | 2,284 ▲192 | 3.33 ▲1.31 | 49.74 ▲13.33 | 32.07 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 23.14 ▼0.23 | 630.51 ▼71.17 | 35.53 ▼26.23 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.11 ▼0.15 | 82.32 ▼29.40 | 42.17 ▼4.72 |
Support /wp-admin/admin.php?page=slack-notifications-support | 1,036 | 3.07 | 39.58 | 25.92 |
General /wp-admin/admin.php?page=slack-notifications-general | 1,070 | 3.04 | 43.74 | 32.68 |
Notifications /wp-admin/admin.php?page=slack-notifications-notifications | 1,320 | 3.20 | 40.14 | 25.72 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- slack_test_integration
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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 following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dorzki-notifications-to-slack/templates/settings-footer.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/dorzki-notifications-to-slack/templates/settings-general.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dorzki-notifications-to-slack/templates/partials/notification.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/dorzki-notifications-to-slack/templates/settings-header.php:4
- > PHP Fatal error
require(): Failed opening required 'SLACK_NOTIFICATIONS_PATHtemplates/partials/notification.php' (include_path='.:/usr/share/php') in wp-content/plugins/dorzki-notifications-to-slack/templates/settings-notifications.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function Slack_Notifications\\esc_html_e() in wp-content/plugins/dorzki-notifications-to-slack/templates/settings-support.php:6
- > PHP Warning
require(SLACK_NOTIFICATIONS_PATHtemplates/partials/notification.php): failed to open stream: No such file or directory in wp-content/plugins/dorzki-notifications-to-slack/templates/settings-notifications.php on line 29
- > PHP Warning
Use of undefined constant SLACK_NOTIFICATIONS_SLUG - assumed 'SLACK_NOTIFICATIONS_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/dorzki-notifications-to-slack/templates/settings-header.php on line 1
- > PHP Warning
Use of undefined constant SLACK_NOTIFICATIONS_PATH - assumed 'SLACK_NOTIFICATIONS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dorzki-notifications-to-slack/templates/settings-notifications.php on line 29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: realtime, slack, updates, notifications
dorzki-notifications-to-slack/slack-notifications.php 92% from 13 tests
The primary PHP file in "Slack Notifications by dorzki" version 2.0.7 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("dorzki-notifications-to-slack.php" instead of "slack-notifications.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,527 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 974 | 1,052 | 2,520 |
SVG | 5 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 16 | 18.39% |
▷ Public methods | 74 | 85.06% |
▷ Protected methods | 2 | 2.30% |
▷ Private methods | 11 | 12.64% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin