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.07MB] [CPU: ▼6.84ms] Passed 4 tests
A check of server-side resources used by Autovisie Slack Notifications
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 36.25 ▼2.36 |
Dashboard /wp-admin | 3.38 ▲0.04 | 45.67 ▼12.54 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 48.73 ▲1.20 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 82.89 ▼13.66 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 40.20 ▲6.18 |
Slack Notification Settings /wp-admin/options-general.php?page=av-slack-notifications | 3.27 | 28.90 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Autovisie Slack Notifications
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.52 ▼0.78 | 3.93 ▲1.96 | 37.91 ▼3.86 |
Dashboard /wp-admin | 2,204 ▲13 | 5.79 ▼0.11 | 101.04 ▲0.54 | 40.08 ▼3.54 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.01 | 39.84 ▲6.25 | 34.41 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.53 ▼0.18 | 678.01 ▼5.91 | 53.78 ▲7.37 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.25 ▲0.09 | 108.40 ▲3.04 | 46.75 ▼0.67 |
Slack Notification Settings /wp-admin/options-general.php?page=av-slack-notifications | 795 | 2.03 | 23.67 | 26.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/autovisie-slack-notifications/admin/partials/av-slack-notifications-admin-display.php:17
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Menu), #2 (Settings), #3 (Slack configuration), #4 (Incoming WebHooks), #5 (Incoming WebHooks settings), #6 (Example notification (white part in the url we removed ourself))
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== autovisie-slack-notifications ===
)
autovisie-slack-notifications/av-slack-notifications.php 85% from 13 tests
The main file in "Autovisie Slack Notifications" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("autovisie-slack-notifications.php" instead of "av-slack-notifications.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin318 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 134 | 571 | 289 |
PO File | 1 | 6 | 7 | 29 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 22 | 64.71% |
▷ Protected methods | 8 | 23.53% |
▷ Private methods | 4 | 11.76% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 38.31KB | 15.59KB | ▼ 59.31% |
screenshot-1.png | 6.62KB | 4.51KB | ▼ 31.93% |
screenshot-4.png | 59.08KB | 21.01KB | ▼ 64.44% |
screenshot-5.png | 42.96KB | 20.17KB | ▼ 53.06% |
screenshot-3.png | 15.14KB | 7.71KB | ▼ 49.07% |