Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.42ms] Passed 4 tests
This is a short check of server-side resources used by Updates to Slack
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.44 ▼0.95 |
Dashboard /wp-admin | 3.33 ▼0.02 | 43.08 ▼18.99 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 41.89 ▼4.16 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.39 ▼17.57 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.58 ▲0.58 |
Updates to Slack /wp-admin/options-general.php?page=updates2slack | 3.31 | 33.61 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 15 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
updates2slack_ignore_plugins |
updates2slack_sitename |
theysaidso_admin_options |
updates2slack_slackurls |
widget_theysaidso_widget |
updates2slack_enabled |
widget_recent-posts |
updates2slack_settings |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Updates to Slack
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.68 ▼0.70 | 1.71 ▲0.12 | 43.10 ▼1.90 |
Dashboard /wp-admin | 2,210 ▲24 | 4.81 ▼0.14 | 98.96 ▼13.33 | 39.06 ▼3.43 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.05 | 37.02 ▲0.43 | 35.21 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,550 ▲21 | 18.18 ▼0.01 | 617.62 ▼20.97 | 68.18 ▲14.78 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.24 ▼0.01 | 94.46 ▲2.18 | 42.36 ▼1.57 |
Updates to Slack /wp-admin/options-general.php?page=updates2slack | 1,109 | 2.03 | 32.57 | 26.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/updates-to-slack/updates-to-slack.php+177
Invalid argument supplied for foreach()
- This plugin did not uninstall successfully, leaving 15 options in the database
- updates2slack_nextruntime_time
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- updates2slack_ignore_themes
- updates2slack_frequency
- can_compress_scripts
- updates2slack_sitename
- updates2slack_ignore_plugins
- db_upgraded
- ...
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/updates-to-slack/view/options.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add a description for screenshot #6 in updates-to-slack/assets to your readme.txt
updates-to-slack/updates-to-slack.php Passed 13 tests
"Updates to Slack" version 2.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
Sends Slack alerts about WordPress core, plugin and theme updates
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
There were no executable files found in this plugin463 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 106 | 50 | 463 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There are no PNG files in this plugin