Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method GNA_Slack::activate_handler() should not be called statically
Server metrics [RAM: ▼0.66MB] [CPU: ▼15.74ms] Passed 4 tests
Server-side resources used by GNA Slack Notification
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.76 ▲1.35 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.49 ▼6.23 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 47.79 ▼1.97 |
Add New Post /wp-admin/post-new.php | 3.18 ▼2.71 | 41.75 ▼56.11 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.07 ▲1.75 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for GNA Slack Notification
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.64 ▼1.12 | 1.81 ▼0.29 | 47.31 ▼0.86 |
Dashboard /wp-admin | 2,206 ▲18 | 5.82 ▼0.07 | 107.47 ▲5.95 | 82.57 ▲38.54 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 1.98 ▼0.02 | 34.58 ▼4.08 | 32.26 ▼0.20 |
Add New Post /wp-admin/post-new.php | 1,681 ▲139 | 22.62 ▲4.41 | 750.40 ▲115.32 | 58.31 ▼0.16 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.20 ▲0.00 | 101.26 ▲2.16 | 70.93 ▲28.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method GNA_Slack::deactivate_handler() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gna-slack-notification/inc/gna-slack-notification-config.php:13
- > PHP Fatal error
Uncaught Error: Class 'GNA_Slack_Admin_Menu' not found in wp-content/plugins/gna-slack-notification/admin/gna-slack-notification-admin-settings-menu.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: "none"
gna-slack-notification/gna-slack-notification.php Passed 13 tests
The principal PHP file in "GNA Slack Notification" v. 1.0.0 is loaded by WordPress automatically on each request
75 characters long description:
Send notifications to Slack channels when certain events occur in WordPress
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
Success! There were no dangerous files found in this plugin778 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 102 | 65 | 667 |
JavaScript | 1 | 4 | 1 | 65 |
CSS | 1 | 4 | 0 | 46 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 7 | 13.21% |
▷ Public methods | 53 | 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 | 8 | |
▷ Global constants | 8 | 100.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 |
assets/images/gna_20x20.png | 2.98KB | 0.33KB | ▼ 88.89% |