Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.96ms] Passed 4 tests
Server-side resources used by Rock The Slackbot
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.48 ▼2.89 |
Dashboard /wp-admin | 3.37 ▲0.03 | 44.43 ▼13.65 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 45.84 ▲1.03 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 88.21 ▼4.34 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 36.98 ▲4.00 |
Rock The Slackbot /wp-admin/tools.php?page=rock-the-slackbot | 3.27 | 34.71 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Rock The Slackbot
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲43 | 14.44 ▲0.06 | 1.52 ▼0.45 | 37.60 ▼9.94 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.02 | 81.41 ▼7.67 | 37.96 ▼6.47 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.00 ▲0.01 | 39.32 ▲2.94 | 35.85 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.22 ▲0.08 | 635.81 ▼93.98 | 52.70 ▼2.01 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.24 ▲0.03 | 98.39 ▼1.65 | 42.02 ▼3.57 |
Rock The Slackbot /wp-admin/tools.php?page=rock-the-slackbot | 1,092 | 2.33 | 44.39 | 66.26 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- 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
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/rock-the-slackbot/includes/admin.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rock-the-slackbot/includes/hooks.php:66
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
6 plugin tags: team, slackbot, collaboration, notification, slack...
rock-the-slackbot/rock-the-slackbot.php Passed 13 tests
The entry point to "Rock The Slackbot" version 1.1.2 is a PHP file that has certain tags in its header comment area
114 characters long description:
Helps you stay on top of changes by sending notifications straight to you and your team inside your Slack account.
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
No dangerous file extensions were detected2,801 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 1,017 | 1,623 | 2,799 |
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
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 131.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 261.00 |
Average method complexity | 8.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 3 | 4.55% |
▷ Public methods | 51 | 77.27% |
▷ Protected methods | 2 | 3.03% |
▷ Private methods | 13 | 19.70% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wordpress-icon-emoji.png | 8.80KB | 4.31KB | ▼ 51.00% |
assets/images/slack-logo.png | 7.71KB | 3.76KB | ▼ 51.27% |