56% jettweet

Code Review | Jet Tweet

WordPress plugin Jet Tweet scored 56% from 54 tests.

About plugin

  • Plugin page: jettweet
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 5.8.1
  • First release: Feb 25, 2013
  • Latest release: May 24, 2013
  • Number of updates: 8
  • Update frequency: every 11.1 days
  • Top authors: zourbuth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 3,556 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.63MB] [CPU: ▼184.06ms] Passed 4 tests

Server-side resources used by Jet Tweet
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.99 ▼0.857.50 ▼17.19
Dashboard /wp-admin2.02 ▼1.047.63 ▼34.50
Posts /wp-admin/edit.php2.02 ▼1.096.84 ▼26.39
Add New Post /wp-admin/post-new.php2.02 ▼3.426.61 ▼657.93
Media Library /wp-admin/upload.php2.02 ▼0.986.76 ▼17.41
Jet Tweet /wp-admin/options-general.php?page=jettweet2.027.92

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 2 new options
New WordPress options
jettweet
widget_jettweet

Browser metrics Passed 4 tests

Jet Tweet: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,671 ▲7015.96 ▼0.095.21 ▼0.6376.68 ▲4.60
Dashboard /wp-admin2,934 ▲416.09 ▼0.05124.58 ▼3.52174.33 ▼1.28
Posts /wp-admin/edit.php2,745 ▲53.24 ▲0.0163.95 ▲3.99135.30 ▼1.32
Add New Post /wp-admin/post-new.php3,816 ▲8119.41 ▲2.43467.09 ▼1.38159.43 ▼1.58
Media Library /wp-admin/upload.php1,757 ▲55.50 ▼0.04145.45 ▲3.50182.72 ▼1.75
Jet Tweet /wp-admin/options-general.php?page=jettweet1,4043.4666.58141.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5304
    The called constructor method for WP_Widget in Jet_Tweet_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_jettweet

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=jettweet
    • > User deprecated in wp-includes/functions.php+5304
    The called constructor method for WP_Widget in Jet_Tweet_Widget is deprecated since version 4.3.0! Use __construct() instead.

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/jettweet/templates/default/template.php
  • 4× 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/jettweet/jettweet.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jettweet/jettweet-main.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/jettweet/jettweet-setting.php:795
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jettweet/jettweet-widget.php:22

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=jettweet
    • > Console-api (warning) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31592 "jQuery.Deferred exception: $(...).unbind(...).live is not a function" "TypeError: $(...).unbind(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/jettweet/js/jquery.dialog.js?ver=5.8.1:58:34)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340)" undefined
    • > GET request to /wp-admin/options-general.php?page=jettweet
    • > Console-api (warning) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31592 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/jettweet/js/jquery.settings.js?ver=5.8.1:32:28)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340)" undefined
    • > GET request to /wp-admin/options-general.php?page=jettweet
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31702 Uncaught TypeError: $(...).unbind(...).live is not a function
    • > GET request to /wp-admin/options-general.php?page=jettweet
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31702 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can take inspiration from this readme.txt

jettweet/jettweet.php 92% from 13 tests

The main PHP file in "Jet Tweet" ver. 0.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 634 characters long)

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
There were no executable files found in this plugin2,992 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP114726842,045
CSS32110726
JavaScript34451221

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity15.93
▷ Minimum class complexity1.00
▷ Maximum class complexity71.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes214.29%
▷ Concrete classes1285.71%
▷ Final classes00.00%
Methods102
▷ Static methods109.80%
▷ Public methods9189.22%
▷ Protected methods21.96%
▷ Private methods98.82%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/background.png50.52KB31.75KB▼ 37.15%
images/color.png0.61KB0.58KB▼ 5.58%
images/overlay.png1.08KB0.34KB▼ 68.68%
images/jettweet.png4.53KB2.54KB▼ 43.93%
images/settings.png50.86KB32.36KB▼ 36.39%