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.18MB] [CPU: ▼0.54ms] Passed 4 tests
A check of server-side resources used by Slack
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 46.02 ▲6.37 |
Dashboard /wp-admin | 3.48 ▲0.18 | 49.53 ▲0.33 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 48.85 ▲1.16 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 94.06 ▼8.95 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.93 ▲5.32 |
Add New /wp-admin/post-new.php?post_type=slack_integration | 3.45 | 42.97 |
Slack Integrations /wp-admin/edit.php?post_type=slack_integration | 3.45 | 38.71 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Slack
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.15 ▼1.26 | 1.80 ▲0.11 | 44.24 ▼4.62 |
Dashboard /wp-admin | 2,235 ▲52 | 4.93 ▲0.04 | 99.96 ▼12.39 | 65.72 ▲19.47 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 1.99 ▼0.04 | 37.91 ▲1.68 | 37.12 ▲4.48 |
Add New Post /wp-admin/post-new.php | 1,690 ▲157 | 22.31 ▼1.13 | 610.26 ▲13.21 | 41.98 ▼12.79 |
Media Library /wp-admin/upload.php | 1,411 ▲29 | 4.24 ▲0.03 | 104.02 ▲4.85 | 76.90 ▲35.25 |
Add New /wp-admin/post-new.php?post_type=slack_integration | 1,318 | 2.45 | 46.02 | 66.33 |
Slack Integrations /wp-admin/edit.php?post_type=slack_integration | 1,075 | 1.96 | 31.49 | 26.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/slack/views/submit-meta-box.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/slack/views/post-meta-box.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #2, #3 in slack/assets to your readme.txt
slack/slack.php Passed 13 tests
The main PHP file in "Slack" ver. 0.6.0 adds more information about the plugin and also serves as the entry point for this plugin
102 characters long description:
This plugin allows you to send notifications to Slack channels when certain events in WordPress occur.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected941 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 206 | 507 | 807 |
Markdown | 1 | 30 | 0 | 62 |
JavaScript | 1 | 10 | 2 | 47 |
CSS | 1 | 6 | 0 | 25 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 41 | 95.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.65% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 1.62KB | 0.92KB | ▼ 43.28% |