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 scored10%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: 6.3.1
  • 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

50+ active /2,583 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.10 ▼2.98
Dashboard /wp-admin3.33 ▲0.0252.64 ▼4.90
Posts /wp-admin/edit.php3.38 ▲0.0254.11 ▼0.20
Add New Post /wp-admin/post-new.php5.91 ▲0.03117.47 ▲25.26
Media Library /wp-admin/upload.php3.25 ▲0.0239.46 ▲1.02
Pro Waiting List /wp-admin/admin.php?page=stuff-to-tweet23.0628.71
Click To Tweet /wp-admin/admin.php?page=click-to-tweet3.2233.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16613.70 ▼0.534.80 ▲2.7638.81 ▼11.04
Dashboard /wp-admin2,250 ▲446.04 ▲1.12108.71 ▲3.1242.04 ▲4.08
Posts /wp-admin/edit.php2,129 ▲262.04 ▼0.0136.34 ▼1.3633.06 ▼4.28
Add New Post /wp-admin/post-new.php1,707 ▲16222.50 ▼0.51598.72 ▼19.0094.62 ▲3.43
Media Library /wp-admin/upload.php1,432 ▲384.22 ▲0.02120.38 ▲16.5348.69 ▲4.80
Pro Waiting List /wp-admin/admin.php?page=stuff-to-tweet22,0497.29291.18132.25
Click To Tweet /wp-admin/admin.php?page=click-to-tweet9292.0727.1732.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

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)
You can look at the official readme.txt

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

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 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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png122.05KB51.95KB▼ 57.43%
screenshot-4.png103.95KB33.05KB▼ 68.20%
assets/img/twitter-little-bird-white.png1.19KB0.40KB▼ 66.39%
screenshot-3.png126.50KB42.36KB▼ 66.51%
assets/img/full-skin-white.png19.33KB0.72KB▼ 96.29%