83% twittee-text-tweet

Code Review | Twittee Text Tweet

WordPress plugin Twittee Text Tweet scored83%from 54 tests.

About plugin

  • Plugin page: twittee-text-tweet
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: May 7, 2014
  • Latest release: Jan 25, 2021
  • Number of updates: 29
  • Update frequency: every 84.8 days
  • Top authors: Johnnie2u (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,570 total downloads

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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.70ms] Passed 4 tests

A check of server-side resources used by Twittee Text Tweet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.85 ▲0.63
Dashboard /wp-admin3.36 ▲0.0548.62 ▼5.80
Posts /wp-admin/edit.php3.41 ▲0.0549.94 ▼7.85
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.17 ▼17.77
Media Library /wp-admin/upload.php3.28 ▲0.0540.68 ▲2.60

Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Twittee Text Tweet
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲10513.48 ▼0.788.24 ▲6.3841.34 ▲1.34
Dashboard /wp-admin2,210 ▲365.51 ▼0.0384.16 ▼6.2273.71 ▲34.72
Posts /wp-admin/edit.php2,112 ▲121.97 ▼0.0435.41 ▼5.2034.55 ▼3.47
Add New Post /wp-admin/post-new.php1,552 ▲2622.88 ▼0.20663.31 ▲28.27182.23 ▲116.75
Media Library /wp-admin/upload.php1,418 ▲154.24 ▲0.00100.05 ▲1.7564.23 ▲23.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twittee-text-tweet/ttt-twittee-text-tweet.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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:
  • Plugin Name: Please specify the plugin name on the first line ( === twittee-text-tweet === )
You can look at the official readme.txt

twittee-text-tweet/ttt-twittee-text-tweet.php 85% from 13 tests

Analyzing the main PHP file in "Twittee Text Tweet" version 1.0.8
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("twittee-text-tweet.php" instead of "ttt-twittee-text-tweet.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin600 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP18540363
CSS13518110
PO File1353587
JavaScript2232340

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.63MB with 0.28MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ttt_twittee_text_tweet_logo_miniature.png50.37KB5.13KB▼ 89.81%
images/ttt_twitter_favicon.png0.67KB0.95KB0.00%
images/ttt_twittee_text_tweet_logo.png590.10KB51.82KB▼ 91.22%
images/ttt_twitter_balloon.png1.14KB1.36KB0.00%