10% any-user-twitter-feed

Code Review | Any User Twitter Feed

WordPress plugin Any User Twitter Feed scored10%from 54 tests.

About plugin

  • Plugin page: any-user-twitter-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 16, 2013
  • Latest release: Jan 17, 2016
  • Number of updates: 14
  • Update frequency: every 70.0 days
  • Top authors: sellersbay (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

500+ active /16,764 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/any-user-twitter-feed/any-user-twitter-feed.php+31
    Methods with the same name as their class will not be constructors in a future version of PHP; AnyUserTwitterFeed has a deprecated constructor

Server metrics [RAM: ▼1.83MB] [CPU: ▼52.89ms] Passed 4 tests

Analyzing server-side resources used by Any User Twitter Feed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.298.45 ▼32.48
Dashboard /wp-admin2.19 ▼1.166.01 ▼52.94
Posts /wp-admin/edit.php2.19 ▼1.177.08 ▼40.33
Add New Post /wp-admin/post-new.php2.19 ▼3.706.70 ▼85.81
Media Library /wp-admin/upload.php2.19 ▼1.047.17 ▼27.41

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_anyusertwitterfeed
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Any User Twitter Feed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.36 ▼1.261.94 ▼0.1936.44 ▼7.40
Dashboard /wp-admin2,206 ▲275.76 ▲0.8394.50 ▼21.4938.96 ▼6.99
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0039.69 ▲4.5932.49 ▼2.81
Add New Post /wp-admin/post-new.php1,533 ▲1423.19 ▼0.19664.09 ▲6.3057.28 ▼9.55
Media Library /wp-admin/upload.php1,382 ▼64.29 ▲0.1295.55 ▲0.4240.33 ▼3.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/any-user-twitter-feed/any-user-twitter-feed.php+31
    Methods with the same name as their class will not be constructors in a future version of PHP; AnyUserTwitterFeed has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_anyusertwitterfeed
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% 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 0% 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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/any-user-twitter-feed/error.php
    • > /wp-content/plugins/any-user-twitter-feed/description.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: params in wp-content/plugins/any-user-twitter-feed/output.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to a member function get() on null in wp-content/plugins/any-user-twitter-feed/output.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/any-user-twitter-feed/any-user-twitter-feed.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
  • Screenshots: Add an image for screenshot #1 (soon)
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

any-user-twitter-feed/any-user-twitter-feed.php 92% from 13 tests

"Any User Twitter Feed" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 207 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,555 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP112739061,477
CSS117075
JavaScript1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.95
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes315.79%
▷ Concrete classes1684.21%
▷ Final classes00.00%
Methods129
▷ Static methods1410.85%
▷ Public methods10883.72%
▷ Protected methods96.98%
▷ Private methods129.30%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/twitter-icon.png0.45KB0.60KB0.00%