Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had 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.02MB] [CPU: ▼1.77ms] Passed 4 tests
An overview of server-side resources used by Click To Tweet Boxes for Twitter By Cheeky Apps
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.10 ▼2.98 |
Dashboard /wp-admin | 3.33 ▲0.02 | 52.64 ▼4.90 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 54.11 ▼0.20 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 117.47 ▲25.26 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.46 ▲1.02 |
Pro Waiting List /wp-admin/admin.php?page=stuff-to-tweet2 | 3.06 | 28.71 |
Click To Tweet /wp-admin/admin.php?page=click-to-tweet | 3.22 | 33.87 |
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, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Click To Tweet Boxes for Twitter By Cheeky Apps: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲166 | 13.70 ▼0.53 | 4.80 ▲2.76 | 38.81 ▼11.04 |
Dashboard /wp-admin | 2,250 ▲44 | 6.04 ▲1.12 | 108.71 ▲3.12 | 42.04 ▲4.08 |
Posts /wp-admin/edit.php | 2,129 ▲26 | 2.04 ▼0.01 | 36.34 ▼1.36 | 33.06 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,707 ▲162 | 22.50 ▼0.51 | 598.72 ▼19.00 | 94.62 ▲3.43 |
Media Library /wp-admin/upload.php | 1,432 ▲38 | 4.22 ▲0.02 | 120.38 ▲16.53 | 48.69 ▲4.80 |
Pro Waiting List /wp-admin/admin.php?page=stuff-to-tweet2 | 2,049 | 7.29 | 291.18 | 132.25 |
Click To Tweet /wp-admin/admin.php?page=click-to-tweet | 929 | 2.07 | 27.17 | 32.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > 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_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 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 need to be fixed:
- 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
Analyzing the main PHP file in "Click To Tweet Boxes for Twitter By Cheeky Apps" version 1.1
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-click-to-tweet-by-cheeky-apps.php" instead of "click_to_tweet_cheeky_apps.php")
- Description: Keep the plugin description shorter than 140 characters (currently 277 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! 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
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
19 PNG files occupy 0.81MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 122.05KB | 51.95KB | ▼ 57.43% |
screenshot-4.png | 103.95KB | 33.05KB | ▼ 68.20% |
assets/img/twitter-little-bird-white.png | 1.19KB | 0.40KB | ▼ 66.39% |
screenshot-3.png | 126.50KB | 42.36KB | ▼ 66.51% |
assets/img/full-skin-white.png | 19.33KB | 0.72KB | ▼ 96.29% |