Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.21ms] Passed 4 tests
Server-side resources used by Better HipChat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 42.04 ▲2.56 |
Dashboard /wp-admin | 3.47 ▲0.13 | 47.17 ▼11.00 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 48.09 ▲1.50 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 92.82 ▼3.44 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.22 ▲0.12 |
Add New /wp-admin/post-new.php?post_type=hipchat_integration | 3.44 | 42.20 |
HipChat Integrations /wp-admin/edit.php?post_type=hipchat_integration | 3.44 | 38.71 |
Server storage [IO: ▲0.08MB] [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: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Better HipChat
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.28 ▼1.07 | 2.17 ▲0.39 | 41.75 ▲1.73 |
Dashboard /wp-admin | 2,235 ▲44 | 5.84 ▲0.90 | 95.32 ▼35.99 | 94.87 ▲54.35 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 1.99 ▲0.01 | 39.95 ▲2.15 | 40.31 ▲5.45 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.21 ▲0.17 | 750.30 ▲74.59 | 57.82 ▲5.57 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.06 ▼0.22 | 105.95 ▼9.14 | 72.87 ▲25.53 |
Add New /wp-admin/post-new.php?post_type=hipchat_integration | 1,274 | 2.57 | 47.00 | 64.41 |
HipChat Integrations /wp-admin/edit.php?post_type=hipchat_integration | 1,067 | 1.95 | 33.14 | 28.07 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-hipchat/views/post-meta-box.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/better-hipchat/views/submit-meta-box.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/better-hipchat/better-hipchat.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3 in better-hipchat/assets to your readme.txt
better-hipchat/better-hipchat.php 92% from 13 tests
"Better HipChat" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,319 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 231 | 291 | 924 |
Bourne Again Shell | 2 | 41 | 38 | 152 |
Markdown | 3 | 36 | 0 | 74 |
Bourne Shell | 1 | 12 | 6 | 47 |
JavaScript | 1 | 10 | 2 | 45 |
YAML | 1 | 5 | 0 | 28 |
CSS | 1 | 6 | 0 | 25 |
XML | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 41 | 95.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.65% |
Functions | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.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
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 |
img/logo.png | 1.56KB | 0.97KB | ▼ 37.39% |