78% t4xi-latest-tweets

Code Review | T4XI Latest Tweets

WordPress plugin T4XI Latest Tweets scored78%from 54 tests.

About plugin

  • Plugin page: t4xi-latest-tweets
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2013
  • Latest release: Nov 11, 2013
  • Number of updates: 16
  • Update frequency: every 2.4 days
  • Top authors: t4xi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /735 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.03ms] Passed 4 tests

Server-side resources used by T4XI Latest Tweets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.17 ▼10.71
Dashboard /wp-admin3.33 ▲0.0348.55 ▼2.91
Posts /wp-admin/edit.php3.38 ▲0.0349.80 ▼4.69
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.29 ▼9.82
Media Library /wp-admin/upload.php3.26 ▲0.0339.33 ▲6.48

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_wt_widget
widget_recent-comments

Browser metrics Passed 4 tests

T4XI Latest Tweets: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲17513.53 ▼0.865.26 ▲3.2636.95 ▼6.17
Dashboard /wp-admin2,208 ▲175.88 ▼0.02105.71 ▲2.3242.57 ▼4.45
Posts /wp-admin/edit.php2,094 ▲22.02 ▲0.0239.67 ▼1.7235.01 ▼1.75
Add New Post /wp-admin/post-new.php1,530 ▼323.22 ▼0.18669.33 ▲57.9156.60 ▼3.04
Media Library /wp-admin/upload.php1,390 ▲24.13 ▼0.11111.39 ▲1.4447.37 ▲2.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_wt_widget
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/t4xi-latest-tweets/js/scripts.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/t4xi-latest-tweets/t4xi-latest-tweets.php:15

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (Screenshot of the plugin in operation.), #2 (Screenshot of the custom variable settings panel.)
You can take inspiration from this readme.txt

t4xi-latest-tweets/t4xi-latest-tweets.php Passed 13 tests

The entry point to "T4XI Latest Tweets" version 1.2 is a PHP file that has certain tags in its header comment area
34 characters long description:
Add latest tweets in your sidebar.

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
Good job! No executable or dangerous file extensions detected122 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25426116
CSS1506

PHP code Passed 2 tests

An overview 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.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin