10% all-twitter

Code Review | Twitter Feed

WordPress plugin Twitter Feed scored10%from 54 tests.

About plugin

  • Plugin page: all-twitter
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.8
  • WordPress version: 6.3.1
  • First release: Jan 23, 2017
  • Latest release: Apr 21, 2017
  • Number of updates: 4
  • Update frequency: every 33.5 days
  • Top authors: umarbajwa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,255 total downloads


Plugin footprint 58% 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
  • Install procedure had errors
    • > Warning in wp-content/plugins/all-twitter/core_functions.php+44
    require(wp-content/plugins/all-twitter/public/classes/class-SMUZSF-public.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.49ms] Passed 4 tests

Server-side resources used by Twitter Feed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.82 ▼1.18
Dashboard /wp-admin3.31 ▲0.0046.48 ▼4.24
Posts /wp-admin/edit.php3.36 ▲0.0049.08 ▼3.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.53 ▲10.09
Media Library /wp-admin/upload.php3.23 ▲0.0036.18 ▲2.56

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Twitter Feed: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.14 ▼1.231.79 ▼0.0341.07 ▼4.06
Dashboard /wp-admin2,206 ▲184.84 ▼0.03111.68 ▲5.1740.71 ▲1.06
Posts /wp-admin/edit.php2,089 ▲212.05 ▼0.0040.31 ▲2.3335.88 ▲4.15
Add New Post /wp-admin/post-new.php1,539 ▼323.28 ▲4.95623.10 ▲6.0944.05 ▼17.67
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.0593.91 ▼5.9442.04 ▼2.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • SMUZSFTW_plugin_version
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Twitter feed demo stream.), #2 (Twitter feed demo stream.), #3 (Twitter feed demo stream.), #4 (Twitter feed demo stream.)
The official readme.txt might help

all-twitter/plugin.php 92% from 13 tests

The primary PHP file in "Twitter Feed" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("all-twitter.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin6,071 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.00
▷ Minimum class complexity3.00
▷ Maximum class complexity9.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions13100.00%
▷ Anonymous functions00.00%
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 1.52MB with 0.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/ui/images/Wordpress.png2.54KB1.68KB▼ 33.84%
admin/ui/images/twitter-ribbon.png15.60KB6.34KB▼ 59.38%
admin/ui/images/layout3.png117.39KB31.98KB▼ 72.75%
admin/ui/images/fb-ribbon.png27.42KB5.20KB▼ 81.05%
admin/ui/images/layout1.png102.50KB25.44KB▼ 75.18%