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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.60MB] [CPU: ▼15.78ms] Passed 4 tests
A check of server-side resources used by Invitations for Slack
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 28.24 ▼10.53 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.85 ▼1.67 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 46.67 ▲0.46 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.63 | 37.54 ▼51.38 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.33 ▲6.84 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Invitations for Slack
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲208 | 13.60 ▼0.33 | 6.43 ▲3.96 | 40.99 ▼7.54 |
Dashboard /wp-admin | 2,241 ▲59 | 5.82 ▼0.03 | 96.02 ▼17.08 | 73.82 ▲32.58 |
Posts /wp-admin/edit.php | 2,121 ▲29 | 2.04 ▲0.02 | 35.84 ▼4.78 | 30.90 ▼5.97 |
Add New Post /wp-admin/post-new.php | 1,549 ▲30 | 22.92 ▼0.07 | 738.21 ▲71.96 | 52.47 ▲0.96 |
Media Library /wp-admin/upload.php | 1,417 ▲32 | 4.13 ▼0.04 | 100.81 ▼4.86 | 78.19 ▲34.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/invitations-for-slack/invitations-for-slack.php:71
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: join, community, invitations, slack, invites
invitations-for-slack/invitations-for-slack.php 92% from 13 tests
The main PHP file in "Invitations for Slack" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 319 characters long)
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
Everything looks great! No dangerous files found in this plugin1,020 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 196 | 375 | 623 |
CSS | 1 | 39 | 2 | 199 |
JavaScript | 1 | 55 | 23 | 159 |
SVG | 2 | 0 | 2 | 39 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 30 | 100.00% |
▷ Public methods | 28 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.67% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
invitations-for-slack/assets/icon_black.png | 5.27KB | 2.59KB | ▼ 50.73% |
invitations-for-slack/assets/icon.png | 0.35KB | 0.31KB | ▼ 11.94% |