Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼170.84ms] 75% from 4 tests
This is a short check of server-side resources used by CBX WP Slack
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 8,922.09ms on /wp-admin/edit.php?post_type=cbxwpslack&page=cbxwpslacksetting)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.19 ▲0.47 | 39.68 ▲16.30 |
Dashboard /wp-admin | 3.50 ▲0.44 | 50.66 ▼4.53 |
Posts /wp-admin/edit.php | 3.55 ▲0.43 | 52.91 ▲4.50 |
Add New Post /wp-admin/post-new.php | 5.81 ▲0.37 | 98.02 ▼683.29 |
Media Library /wp-admin/upload.php | 3.38 ▲0.36 | 38.55 ▼0.04 |
Setting /wp-admin/edit.php?post_type=cbxwpslack&page=cbxwpslacksetting | 4.83 | 8,922.09 |
All Slacks In /wp-admin/edit.php?post_type=cbxwpslack | 3.48 | 46.60 |
Add New /wp-admin/post-new.php?post_type=cbxwpslack | 3.49 | 43.20 |
All Slacks Out /wp-admin/edit.php?post_type=cbxwpslackout | 3.48 | 38.14 |
Server storage [IO: ▲0.26MB] [DB: ▲0.14MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 2 new options
New WordPress options |
---|
cbxwpslack_integrations |
cbxwpslackout_general |
Browser metrics Passed 4 tests
An overview of browser requirements for CBX WP Slack
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,869 ▲287 | 16.57 ▲1.12 | 11.70 ▲4.71 | 53.87 ▲2.59 |
Dashboard /wp-admin | 3,016 ▲82 | 5.92 ▼0.10 | 140.79 ▼11.27 | 121.92 ▲1.81 |
Posts /wp-admin/edit.php | 2,788 ▲49 | 2.70 ▲0.01 | 71.41 ▼1.38 | 98.46 ▲3.77 |
Add New Post /wp-admin/post-new.php | 1,715 ▲217 | 18.34 ▼0.52 | 396.29 ▲0.62 | 116.80 ▼7.90 |
Media Library /wp-admin/upload.php | 1,856 ▲34 | 5.02 ▼0.02 | 164.36 ▲13.38 | 133.51 ▲4.69 |
Setting /wp-admin/edit.php?post_type=cbxwpslack&page=cbxwpslacksetting | 1,839 | 5.79 | 121.01 | 110.84 |
All Slacks In /wp-admin/edit.php?post_type=cbxwpslack | 1,494 | 2.90 | 68.16 | 78.76 |
Add New /wp-admin/post-new.php?post_type=cbxwpslack | 2,318 | 3.58 | 98.39 | 101.87 |
All Slacks Out /wp-admin/edit.php?post_type=cbxwpslackout | 1,449 | 2.64 | 63.02 | 76.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.14MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 2 options
- cbxwpslack_integrations
- cbxwpslackout_general
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: notification, communication, slack, slack for wordpress
cbxwpslack/cbxwpslack.php Passed 13 tests
The primary PHP file in "CBX WP Slack" version 1.2.3 is used by WordPress to initiate all plugin functionality
31 characters long description:
Slack Integration for wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,588 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 589 | 952 | 1,599 |
JavaScript | 6 | 401 | 726 | 1,471 |
CSS | 6 | 94 | 18 | 518 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 30.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.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 | 89 | |
▷ Static methods | 2 | 2.25% |
▷ Public methods | 84 | 94.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.62% |
Functions | 12 | |
▷ Named functions | 4 | 33.33% |
▷ Anonymous functions | 8 | 66.67% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |