10% mini-twitter-feed

Code Review | Mini twitter feed

WordPress plugin Mini twitter feed scored10%from 54 tests.

About plugin

  • Plugin page: mini-twitter-feed
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 16, 2012
  • Latest release: Aug 14, 2018
  • Number of updates: 44
  • Update frequency: every 52.5 days
  • Top authors: WebDevDesigner (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /75,031 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/mini-twitter-feed/mini-twitter-feed.php+68
    Methods with the same name as their class will not be constructors in a future version of PHP; MinitwitterWidget has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼49.72ms] Passed 4 tests

Analyzing server-side resources used by Mini twitter feed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.189.85 ▼28.75
Dashboard /wp-admin2.29 ▼1.019.90 ▼41.58
Posts /wp-admin/edit.php2.29 ▼1.0610.69 ▼41.40
Add New Post /wp-admin/post-new.php2.29 ▼3.5910.25 ▼87.13
Media Library /wp-admin/upload.php2.29 ▼0.9310.07 ▼24.90

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_minitwitter-widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mini twitter feed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲12813.94 ▲0.6029.94 ▲25.4540.93 ▼5.40
Dashboard /wp-admin2,203 ▲155.84 ▲0.0399.70 ▼20.0739.43 ▼6.83
Posts /wp-admin/edit.php2,089 ▼32.04 ▼0.0136.29 ▼4.3531.57 ▼1.37
Add New Post /wp-admin/post-new.php1,533 ▼923.07 ▲4.73672.74 ▲9.5365.48 ▲6.04
Media Library /wp-admin/upload.php1,388 ▲34.19 ▲0.05107.52 ▼3.3246.92 ▼2.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in MinitwitterWidget is deprecated since version 4.3.0! Use __construct() instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_minitwitter-widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mini-twitter-feed/mini-twitter-feed.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (The twitter feed on your blog.) image missing
  • Requires at least: Version not formatted correctly
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === mini-twitter-feed === )
The official readme.txt might help

mini-twitter-feed/mini-twitter-feed.php Passed 13 tests

This is the main PHP file of "Mini twitter feed" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
This plugin displays tweets from your feed, from the Twitter Search, from a list or from your favorite users.

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
Everything looks great! No dangerous files found in this plugin145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12920121
CSS12024

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png64.38KB20.12KB▼ 68.75%