Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/easy-click-to-tweet-by-cheeky-apps/tweet-button.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; ca_clicktotweet_button has a deprecated constructor
Server metrics [RAM: ▼0.00MB] [CPU: ▼301.13ms] Passed 4 tests
A check of server-side resources used by Click To Tweet Boxes for Twitter By Cheeky Apps
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 55.76 ▲6.80 |
Dashboard /wp-admin | 3.44 ▲0.03 | 32.71 ▲0.02 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 36.64 ▲1.93 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 94.70 ▼1,197.06 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 24.06 ▼9.41 |
Pro Waiting List /wp-admin/admin.php?page=stuff-to-tweet2 | 3.20 | 20.14 |
Click To Tweet /wp-admin/admin.php?page=click-to-tweet | 3.29 | 22.03 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Click To Tweet Boxes for Twitter By Cheeky Apps
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,929 ▲175 | 16.51 ▲0.92 | 8.89 ▲2.46 | 2.38 ▼0.06 |
Dashboard /wp-admin | 3,004 ▲150 | 6.12 ▼0.04 | 125.59 ▼5.04 | 164.76 ▲4.44 |
Posts /wp-admin/edit.php | 2,801 ▲113 | 3.26 ▲0.03 | 60.97 ▼1.39 | 134.70 ▼9.81 |
Add New Post /wp-admin/post-new.php | 1,687 ▼65 | 16.11 ▼4.79 | 389.61 ▼49.25 | 159.89 ▲6.02 |
Media Library /wp-admin/upload.php | 1,818 ▲120 | 5.66 ▲0.18 | 139.59 ▼3.65 | 185.58 ▼5.76 |
Pro Waiting List /wp-admin/admin.php?page=stuff-to-tweet2 | 2,006 | 9.51 | 294.81 | 116.64 |
Click To Tweet /wp-admin/admin.php?page=click-to-tweet | 1,266 | 2.41 | 54.34 | 108.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-click-to-tweet-by-cheeky-apps/ca_sidebar_menu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/easy-click-to-tweet-by-cheeky-apps/tweet-button.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-click-to-tweet-by-cheeky-apps/ca_shortcode.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
easy-click-to-tweet-by-cheeky-apps/click_to_tweet_cheeky_apps.php 85% from 13 tests
The primary PHP file in "Click To Tweet Boxes for Twitter By Cheeky Apps" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 277 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("easy-click-to-tweet-by-cheeky-apps.php" instead of "click_to_tweet_cheeky_apps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,057 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 83 | 18 | 432 |
PHP | 4 | 155 | 26 | 387 |
JavaScript | 1 | 18 | 31 | 238 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.81MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/twitter-little-bird-white.png | 1.19KB | 0.40KB | ▼ 66.39% |
assets/img/twitter-little-bird-button.png | 1.33KB | 0.51KB | ▼ 61.45% |
assets/img/step3.png | 27.09KB | 10.75KB | ▼ 60.32% |
img/twitter-little-bird.png | 1.23KB | 0.40KB | ▼ 67.48% |
assets/icon-128x128.png | 22.04KB | 9.05KB | ▼ 58.93% |