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
Installer ran successfully
Server metrics [RAM: ▼0.48MB] [CPU: ▼14.80ms] Passed 4 tests
A check of server-side resources used by HameSlack
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 44.23 ▲5.85 |
Dashboard /wp-admin | 3.50 ▲0.20 | 50.71 ▼6.23 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 56.87 ▲8.32 |
Add New Post /wp-admin/post-new.php | 3.38 ▼2.51 | 39.87 ▼62.28 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 41.89 ▲3.48 |
HameSlack Setting /wp-admin/options-general.php?page=hameslack | 3.39 | 37.05 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by HameSlack
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.35 ▼0.20 | 1.68 ▼0.13 | 44.34 ▼3.24 |
Dashboard /wp-admin | 2,204 ▲27 | 5.50 ▼0.14 | 82.91 ▼8.12 | 41.92 ▼1.53 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.01 ▼0.00 | 39.42 ▲2.88 | 37.72 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 18.24 ▼4.77 | 629.75 ▼57.52 | 67.87 ▲8.00 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.24 ▲0.00 | 96.24 ▼16.89 | 41.70 ▼7.05 |
HameSlack Setting /wp-admin/options-general.php?page=hameslack | 970 | 2.16 | 26.55 | 37.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Gianism\\Service\\AbstractService' not found in wp-content/plugins/hameslack/app/Hametuha/HameSlack/Service/Slack.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function hameslack_asset_url() in wp-content/plugins/hameslack/templates/setup.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: slack
hameslack/hameslack.php Passed 13 tests
Analyzing the main PHP file in "HameSlack" version 1.2.0
30 characters long description:
A WordPress utility for Slack.
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,706 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 167 | 676 | 1,420 |
PO File | 1 | 83 | 95 | 249 |
JavaScript | 1 | 5 | 4 | 21 |
CSS | 1 | 0 | 0 | 15 |
JSON | 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.38 |
Average class complexity | 17.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 3 | 8.11% |
▷ Public methods | 34 | 91.89% |
▷ Protected methods | 2 | 5.41% |
▷ Private methods | 1 | 2.70% |
Functions | 41 | |
▷ Named functions | 19 | 46.34% |
▷ Anonymous functions | 22 | 53.66% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/img/slack_monochrome_black.png | 16.46KB | 7.79KB | ▼ 52.64% |
src/img/Slack_Mark_Web.png | 11.52KB | 3.87KB | ▼ 66.42% |
src/img/wordpress-logo-notext-rgb.png | 17.97KB | 9.60KB | ▼ 46.57% |