83% wl-tweet-list-widget

Code Review | WL Tweet List Widget

WordPress plugin WL Tweet List Widget scored83%from 54 tests.

About plugin

  • Plugin page: wl-tweet-list-widget
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Nov 3, 2015
  • Latest release: Dec 21, 2016
  • Number of updates: 17
  • Update frequency: every 34.6 days
  • Top authors: weblogiq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /911 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.59ms] Passed 4 tests

This is a short check of server-side resources used by WL Tweet List Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.94 ▼2.24
Dashboard /wp-admin3.32 ▲0.0149.25 ▼5.00
Posts /wp-admin/edit.php3.37 ▲0.0148.18 ▼6.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.52 ▼24.43
Media Library /wp-admin/upload.php3.24 ▲0.0137.66 ▲0.49

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

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

Browser metrics Passed 4 tests

WL Tweet List Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11514.04 ▼0.5528.50 ▲26.7243.48 ▼2.14
Dashboard /wp-admin2,224 ▲215.90 ▲1.01110.28 ▼2.1638.95 ▼7.61
Posts /wp-admin/edit.php2,103 ▲32.04 ▲0.0138.07 ▼4.6131.64 ▼4.13
Add New Post /wp-admin/post-new.php1,554 ▲2823.20 ▲5.58672.00 ▲36.1849.73 ▼19.17
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.1095.07 ▼11.4142.89 ▼2.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_wl_tweet_list
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wl-tweet-list-widget/wl-tweet-list.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% 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 require attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt might help

wl-tweet-list-widget/wl-tweet-list.php 85% from 13 tests

The entry point to "WL Tweet List Widget" version 1.2.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("wl-tweet-list-widget.php" instead of "wl-tweet-list.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin310 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25438250
PO File1192160

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity9.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
5 PNG files occupy 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png13.21KB6.33KB▼ 52.07%
assets/banner-1544x500.png138.11KB67.22KB▼ 51.33%
assets/icon-128x128.png4.75KB2.55KB▼ 46.26%
assets/icon.png13.44KB6.75KB▼ 49.74%
assets/banner-772x250.png48.19KB22.61KB▼ 53.08%