Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.61MB] [CPU: ▼20.02ms] Passed 4 tests
Analyzing server-side resources used by Bash It Out
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.41 ▼6.06 |
Dashboard /wp-admin | 3.37 ▲0.06 | 48.26 ▼1.74 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.18 ▼6.22 |
Add New Post /wp-admin/post-new.php | 3.25 ▼2.64 | 37.50 ▼65.94 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.67 ▼1.86 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Bash It Out
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.26 ▼0.28 | 1.79 ▲0.10 | 42.90 ▼0.41 |
Dashboard /wp-admin | 2,207 ▲30 | 5.61 ▼0.05 | 87.58 ▼5.66 | 38.27 ▼0.47 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 1.99 ▼0.01 | 33.83 ▼8.93 | 37.32 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.00 ▼0.08 | 648.90 ▼27.35 | 55.84 ▲0.37 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.19 ▼0.09 | 97.36 ▼16.71 | 44.78 ▼2.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Bash_It_Out\Plugin::uninstall_plugin() should not be called statically
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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 | 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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/bash-it-out/admin/templates/admin-page.php:12
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: writing timer, writing, editor
bash-it-out/bash-it-out.php Passed 13 tests
The main PHP file in "Bash It Out" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
Forget about quality, form or style. Achieve your word count goals with this pressure timer.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,267 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 83 | 256 | 524 |
PHP | 5 | 53 | 165 | 391 |
CSS | 1 | 65 | 31 | 352 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 5 | 22.73% |
▷ Public methods | 20 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.09% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.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 compressed PNG files occupy 0.08MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/editor.png | 21.73KB | 19.91KB | ▼ 8.38% |
assets/images/bash-it-out.png | 30.67KB | 28.98KB | ▼ 5.50% |
assets/images/editor-complete.png | 25.03KB | 23.63KB | ▼ 5.61% |