Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.78ms] Passed 4 tests
A check of server-side resources used by WP Down Slack Alert
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 41.35 ▼4.82 |
Dashboard /wp-admin | 3.49 ▲0.19 | 50.41 ▲1.85 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 52.60 ▲4.68 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 85.78 ▼20.81 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 40.44 ▲5.80 |
Slack Alert /wp-admin/tools.php?page=settings-slack-notification | 3.40 | 42.80 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Illegal file modification found: 1 file (45.27KB) outside of "wp-content/plugins/wp-down-slack-alert/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/wp-down-slack-alert-worker.php
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
wpdsa_version |
widget_theysaidso_widget |
widget_recent-comments |
settings_slack_notification_disable_email |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
WP Down Slack Alert: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.37 ▼1.42 | 4.36 ▲2.50 | 44.23 ▼8.60 |
Dashboard /wp-admin | 2,210 ▲22 | 4.88 ▼1.02 | 108.44 ▲1.98 | 40.15 ▲0.64 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.04 | 39.80 ▲3.50 | 35.72 ▲1.13 |
Add New Post /wp-admin/post-new.php | 1,537 ▼1 | 23.19 ▲5.06 | 608.49 ▼32.13 | 49.59 ▼1.84 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.00 | 97.82 ▼2.08 | 42.10 ▼2.54 |
Slack Alert /wp-admin/tools.php?page=settings-slack-notification | 1,586 | 4.19 | 80.45 | 71.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- settings_slack_notification_disable_email
- widget_recent-comments
- widget_recent-posts
- wpdsa_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-down-slack-alert/wp-down-slack-alert.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-down-slack-alert/mu-plugin-template/wp-down-slack-alert-worker.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: notification, alert, crash, break, slack...
wp-down-slack-alert/wp-down-slack-alert.php Passed 13 tests
Analyzing the main PHP file in "WP Down Slack Alert" version 0.4.1
93 characters long description:
Connect WordPress Recovery Mode to a your Slack team to receive alerts when websites are down
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,017 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 88 | 74 | 955 |
JavaScript | 1 | 7 | 4 | 44 |
CSS | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
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 | 14 | |
▷ Named functions | 12 | 85.71% |
▷ Anonymous functions | 2 | 14.29% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.68MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/config-5.png | 85.58KB | 24.75KB | ▼ 71.08% |
images/config-1.png | 98.40KB | 32.04KB | ▼ 67.44% |
images/config-4.png | 118.35KB | 37.40KB | ▼ 68.40% |
images/config-7.png | 114.92KB | 33.87KB | ▼ 70.52% |
images/config-6.png | 78.31KB | 20.90KB | ▼ 73.31% |