79% wp-twitter-wall

Code Review | WP Twitter Wall

WordPress plugin WP Twitter Wall scored79%from 54 tests.

About plugin

  • Plugin page: wp-twitter-wall
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2016
  • Latest release: Oct 20, 2016
  • Number of updates: 17
  • Update frequency: every 1.8 days
  • Top authors: thierrypigot (70.59%)willybahuaud (35.29%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,572 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.52ms] Passed 4 tests

An overview of server-side resources used by WP Twitter Wall
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1637.77 ▼1.42
Dashboard /wp-admin3.46 ▲0.1644.28 ▲0.80
Posts /wp-admin/edit.php3.57 ▲0.2248.90 ▲3.26
Add New Post /wp-admin/post-new.php6.06 ▲0.1784.71 ▼17.29
Media Library /wp-admin/upload.php3.38 ▲0.1536.43 ▼0.18
Add Spam /wp-admin/post-new.php?post_type=twitterwall-spam3.4241.50
All Spams /wp-admin/edit.php?post_type=twitterwall-spam3.4236.26
Settings /wp-admin/edit.php?post_type=twitterwall-spam&page=twitterwall3.3230.28

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Twitter Wall
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲6613.53 ▼0.901.69 ▼0.0642.46 ▲1.65
Dashboard /wp-admin2,244 ▲524.88 ▼0.16100.18 ▼11.3837.44 ▼0.61
Posts /wp-admin/edit.php2,127 ▲382.05 ▲0.0441.81 ▲5.5837.13 ▼0.19
Add New Post /wp-admin/post-new.php1,542 ▲2817.34 ▼0.38670.37 ▼1.5252.91 ▼11.81
Media Library /wp-admin/upload.php1,426 ▲384.20 ▲0.0895.12 ▼15.4942.47 ▼8.48
Add Spam /wp-admin/post-new.php?post_type=twitterwall-spam1,4222.5047.9567.27
All Spams /wp-admin/edit.php?post_type=twitterwall-spam1,0881.9830.3127.62
Settings /wp-admin/edit.php?post_type=twitterwall-spam&page=twitterwall1,1352.2346.9527.30

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=twitterwall-spam&page=twitterwall
    • > Notice in wp-content/plugins/wp-twitter-wall/wp-twitter-wall.php+501
    Undefined variable: default

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-twitter-wall/wp-twitter-wall.php

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: hastag, twitterwall, wall, tweet, conference...

wp-twitter-wall/wp-twitter-wall.php Passed 13 tests

This is the main PHP file of "WP Twitter Wall" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
72 characters long description:
Display a live Twitter wall at your event, using your WordPress website!

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
Everything looks great! No dangerous files found in this plugin1,152 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP4162132752
PO File16677157
CSS1221129
JavaScript4715114

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity6.00
▷ Minimum method complexity2.00
▷ Maximum method complexity15.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods450.00%
▷ Protected methods450.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/retweet.png0.81KB0.77KB▼ 4.83%
img/reply.png0.75KB0.90KB0.00%