Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼5.95ms] Passed 4 tests
A check of server-side resources used by bbp tweet
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.00 | 39.18 ▼3.46 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.38 ▼7.86 |
Posts /wp-admin/edit.php | 3.36 ▼0.00 | 50.51 ▼5.02 |
Add New Post /wp-admin/post-new.php | 5.89 ▼0.00 | 92.36 ▼7.44 |
Media Library /wp-admin/upload.php | 3.23 ▼0.00 | 37.80 ▼0.83 |
Server storage [IO: ▲2.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
bbp_tweet_version |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
bbp tweet: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.74 ▲0.00 | 1.67 ▲0.02 | 46.21 ▼0.43 |
Dashboard /wp-admin | 2,221 ▲18 | 4.86 ▼0.04 | 99.16 ▼30.39 | 37.61 ▼7.21 |
Posts /wp-admin/edit.php | 2,100 ▼6 | 1.99 ▼0.07 | 37.38 ▼1.67 | 37.55 ▼3.53 |
Add New Post /wp-admin/post-new.php | 1,526 ▼6 | 17.50 ▼5.53 | 628.55 ▼32.62 | 55.86 ▼21.23 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.02 | 105.90 ▼9.14 | 45.58 ▼0.09 |
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
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- bbp_tweet_version
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bbp-tweet/bbp-tweet-admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/bbp-tweet/bbp-tweet.php:13
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== bbp-tweet ===
)
bbp-tweet/bbp-tweet.php Passed 13 tests
The main PHP file in "bbp tweet" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
bbPress plugin to automatically tweet new topics and replies.
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
Success! There were no dangerous files found in this plugin9,246 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 15 | 27 | 6,826 |
JavaScript | 4 | 578 | 204 | 1,566 |
PHP | 3 | 219 | 102 | 617 |
SVG | 1 | 0 | 0 | 229 |
Markdown | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 22.22% |
Functions | 9 | |
▷ Named functions | 9 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.74MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/twitter_app_001.png | 67.27KB | 25.07KB | ▼ 62.73% |
img/twitter_app_005.png | 100.24KB | 37.71KB | ▼ 62.38% |
assets/banner-772x250.png | 220.29KB | 62.00KB | ▼ 71.86% |
img/twitter_app_002.png | 63.76KB | 24.12KB | ▼ 62.16% |
img/twitter_app_004.png | 110.90KB | 38.46KB | ▼ 65.32% |