64% twitter-user-timelines

Code Review | Twitter User Timelines

WordPress plugin Twitter User Timelines scored64%from 54 tests.

About plugin

  • Plugin page: twitter-user-time...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.2
  • WordPress version: 6.3.1
  • First release: Apr 16, 2015
  • Latest release: Oct 11, 2015
  • Number of updates: 19
  • Update frequency: every 9.4 days
  • Top authors: danielpataki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,538 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼11.72ms] Passed 4 tests

Analyzing server-side resources used by Twitter User Timelines
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0933.57 ▼4.53
Dashboard /wp-admin3.40 ▲0.0541.44 ▼20.03
Posts /wp-admin/edit.php3.51 ▲0.1547.26 ▲2.75
Add New Post /wp-admin/post-new.php5.98 ▲0.0976.39 ▼19.55
Media Library /wp-admin/upload.php3.32 ▲0.0932.83 ▼2.75
Twitter Timelines /wp-admin/options-general.php?page=twitter-user-timelines-settings3.2929.47

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_twitter-user-timelines
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Twitter User Timelines
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.34 ▼0.141.58 ▼0.0436.59 ▼9.11
Dashboard /wp-admin2,202 ▲245.62 ▼0.0196.82 ▼3.3843.32 ▲3.32
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0439.40 ▲4.6935.11 ▲1.50
Add New Post /wp-admin/post-new.php1,529 ▼822.86 ▼0.15653.35 ▲61.0860.95 ▲9.18
Media Library /wp-admin/upload.php1,404 ▲14.21 ▼0.0394.05 ▼3.0540.91 ▼1.74
Twitter Timelines /wp-admin/options-general.php?page=twitter-user-timelines-settings8052.0027.2426.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/twitter-user-timelines/uninstall.php+9
    Undefined variable: wpdb
  • This plugin has failed uninstalling correctly, leaving 17 files (0.09MB) in the plugin directory
    • (new file) images/everything-sprite-light.png
    • (new file) humans.txt
    • (new file) images/twitter-icon.png
    • (new file) images/everything-sprite-dark.png
    • (new file) license.txt
    • (new file) class-twitter-user-timeline.php
    • (new file) lang/twitter-user-timelines-hu_HU.po
    • (new file) lang/translation.pot
    • (new file) lang/twitter-user-timelines-hu_HU.mo
    • (new file) class-tut-twitter.php
    • ...
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_twitter-user-timelines
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent

Smoke tests 75% from 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 50% from 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
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-user-timelines/class-twitter-user-timeline.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-user-timelines/class-twitter-user-timeline.php:13

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: twitter, social, widget

twitter-user-timelines/twitter-user-timelines.php 92% from 13 tests

"Twitter User Timelines" version 1.0.8'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 183 characters long)

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
No dangerous file extensions were detected687 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4123313345
CSS34118249
PO File1242868
JavaScript15025

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity20.50
▷ Minimum class complexity8.00
▷ Maximum class complexity33.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/everything-sprite-dark.png15.94KB1.59KB▼ 90.03%
images/everything-sprite-light.png15.73KB1.55KB▼ 90.12%
images/twitter-icon.png0.25KB0.43KB0.00%