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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼1.99ms] Passed 4 tests
A check of server-side resources used by Better Click To Tweet
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.23 | 44.43 ▼4.20 |
Dashboard /wp-admin | 42.15 ▲38.75 | 7,981,578.91 ▲7,981,514.60 |
Posts /wp-admin/edit.php | 3.68 ▲0.28 | 55.92 ▲2.53 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.22 | 96.80 ▼12.51 |
Media Library /wp-admin/upload.php | 3.49 ▲0.21 | 46.55 ▲6.22 |
Better Click To Tweet /wp-admin/options-general.php?page=better-click-to-tweet | 3.46 | 43.64 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Better Click To Tweet
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.58 ▲0.21 | 2.37 ▲0.72 | 45.05 ▲1.45 |
Dashboard /wp-admin | 2,201 ▲21 | 5.59 ▼0.12 | 91.33 ▲1.69 | 43.14 ▲1.28 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.03 ▲0.03 | 35.48 ▲0.34 | 35.02 ▼5.24 |
Add New Post /wp-admin/post-new.php | 6,204 ▲4,676 | 18.96 ▼4.07 | 930.02 ▲266.92 | 55.64 ▲3.35 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.14 ▼0.18 | 102.14 ▼13.52 | 42.13 ▼7.00 |
Better Click To Tweet /wp-admin/options-general.php?page=better-click-to-tweet | 1,055 | 2.02 | 28.59 | 44.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=better-click-to-tweet
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=better-click-to-tweet
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP 0% 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
Almost there! Just fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/better-click-to-tweet/assets/tinymce/bctt-tinymce.php
- > /wp-content/plugins/better-click-to-tweet/better-click-to-tweet.php
- > /wp-content/plugins/better-click-to-tweet/bctt-admin.php
- > /wp-content/plugins/better-click-to-tweet/bctt_options.php
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-click-to-tweet/bctt-welcome-functions.php:104
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-click-to-tweet/includes/views/welcome/_welcome.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-click-to-tweet/includes/views/welcome/_grow.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-click-to-tweet/includes/views/welcome/_content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/better-click-to-tweet/bctt-welcome.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/better-click-to-tweet/includes/views/welcome/_done.php:3
- > PHP Notice
Undefined variable: mce_locale in wp-content/plugins/better-click-to-tweet/assets/tinymce/languages/bctt-mce-locale.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function bctt_get_step() in wp-content/plugins/better-click-to-tweet/includes/views/welcome/_footer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/better-click-to-tweet/assets/tinymce/languages/bctt-mce-locale.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-click-to-tweet/admin-nags.php:101
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #2, #3, #4 in better-click-to-tweet/assets to your readme.txt
better-click-to-tweet/better-click-to-tweet.php Passed 13 tests
The principal PHP file in "Better Click To Tweet" v. 5.12.0 is loaded by WordPress automatically on each request
117 characters long description:
Add Click to Tweet boxes simply and elegantly to your posts or pages. All the features of a premium plugin, for FREE!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,350 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 574 | 591 | 1,844 |
PO File | 8 | 247 | 300 | 1,111 |
CSS | 6 | 23 | 1 | 218 |
JavaScript | 6 | 28 | 41 | 177 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 28.60 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 4 | 9.52% |
▷ Public methods | 27 | 64.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 35.71% |
Functions | 39 | |
▷ Named functions | 38 | 97.44% |
▷ Anonymous functions | 1 | 2.56% |
Constants | 1 | |
▷ Global constants | 1 | 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
5 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/bctt-logo-alt.png | 55.11KB | 17.10KB | ▼ 68.97% |
assets/img/premium_style.png | 68.47KB | 27.52KB | ▼ 59.80% |
assets/img/birdy_button.png | 1.22KB | 0.51KB | ▼ 57.91% |
assets/img/bctt-logo.png | 10.56KB | 5.16KB | ▼ 51.10% |
assets/img/birdy.png | 1.34KB | 0.54KB | ▼ 59.65% |