10% easy-click-to-tweet-by-cheeky-apps

Code Review | Click To Tweet Boxes for Twitter By Cheeky Apps

WordPress plugin Click To Tweet Boxes for Twitter By Cheeky Apps scored 10% from 54 tests.

About plugin

  • Plugin page: easy-click-to-twe...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.5.2
  • WordPress version: 5.9.2
  • First release: Oct 5, 2015
  • Latest release: Jun 6, 2016
  • Number of updates: 14
  • Update frequency: every 17.7 days
  • Top authors: scottmoses (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

90+ active / 2,385 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0255.76 ▲6.80
Dashboard /wp-admin3.44 ▲0.0332.71 ▲0.02
Posts /wp-admin/edit.php3.66 ▲0.0236.64 ▲1.93
Add New Post /wp-admin/post-new.php6.91 ▼0.0694.70 ▼1,197.06
Media Library /wp-admin/upload.php3.31 ▲0.0124.06 ▼9.41
Pro Waiting List /wp-admin/admin.php?page=stuff-to-tweet23.2020.14
Click To Tweet /wp-admin/admin.php?page=click-to-tweet3.2922.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,929 ▲17516.51 ▲0.928.89 ▲2.462.38 ▼0.06
Dashboard /wp-admin3,004 ▲1506.12 ▼0.04125.59 ▼5.04164.76 ▲4.44
Posts /wp-admin/edit.php2,801 ▲1133.26 ▲0.0360.97 ▼1.39134.70 ▼9.81
Add New Post /wp-admin/post-new.php1,687 ▼6516.11 ▼4.79389.61 ▼49.25159.89 ▲6.02
Media Library /wp-admin/upload.php1,818 ▲1205.66 ▲0.18139.59 ▼3.65185.58 ▼5.76
Pro Waiting List /wp-admin/admin.php?page=stuff-to-tweet22,0069.51294.81116.64
Click To Tweet /wp-admin/admin.php?page=click-to-tweet1,2662.4154.34108.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

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


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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.12
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions20100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/twitter-little-bird-white.png1.19KB0.40KB▼ 66.39%
assets/img/twitter-little-bird-button.png1.33KB0.51KB▼ 61.45%
assets/img/step3.png27.09KB10.75KB▼ 60.32%
img/twitter-little-bird.png1.23KB0.40KB▼ 67.48%
assets/icon-128x128.png22.04KB9.05KB▼ 58.93%