Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/wp-twitterbadge/wp-twitterbadge.php+85
Undefined variable: tb_twitter_account
Server metrics [RAM: ▼1.92MB] [CPU: ▼58.48ms] Passed 4 tests
Server-side resources used by WP-TwitterBadge
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 6.57 ▼36.89 |
Dashboard /wp-admin | 2.10 ▼1.25 | 9.92 ▼58.85 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 9.06 ▼42.90 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 12.25 ▼95.28 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 7.93 ▼28.24 |
WP-TwitterBadge /wp-admin/options-general.php?page=wp-twitterbadge/wp-twitterbadge-options.php | 2.10 | 8.12 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
WP-TwitterBadge: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲48 | 14.32 ▼0.29 | 1.77 ▲0.20 | 42.58 ▼2.57 |
Dashboard /wp-admin | 2,202 ▲25 | 5.58 ▼0.07 | 90.03 ▼1.21 | 41.78 ▼4.19 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.07 | 37.92 ▼3.81 | 38.78 ▼7.48 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.16 ▲0.02 | 665.80 ▲16.48 | 54.57 ▲1.43 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.24 ▲0.04 | 96.18 ▼5.54 | 44.41 ▲2.27 |
WP-TwitterBadge /wp-admin/options-general.php?page=wp-twitterbadge/wp-twitterbadge-options.php | 1,246 | 1.81 | 34.28 | 32.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-twitterbadge/wp-twitterbadge.php+85
Undefined variable: tb_twitter_account
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=wp-twitterbadge/wp-twitterbadge-options.php
- > Notice in wp-content/plugins/wp-twitterbadge/wp-twitterbadge.php+85
Undefined variable: tb_twitter_account
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-twitterbadge/wp-twitterbadge-options.php
- > /wp-content/plugins/wp-twitterbadge/wp-twitterbadge.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: link, social, tweet, twitter, friend...
wp-twitterbadge/wp-twitterbadge.php Passed 13 tests
"WP-TwitterBadge" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
132 characters long description:
WP-TwitterBadge lets you easily add a small Twitter badge to the side of your blog to invite your visitors to follow you on Twitter!
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
There were no executable files found in this plugin418 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 58 | 99 | 360 |
JavaScript | 2 | 0 | 0 | 58 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/my-twitter.png | 1.48KB | 1.57KB | 0.00% |
img/follow-me.png | 1.60KB | 1.66KB | 0.00% |
img/follow.png | 1.43KB | 1.43KB | 0.27% |
img/icon-about.png | 0.17KB | 0.17KB | 0.00% |
img/color.png | 0.82KB | 1.07KB | 0.00% |