78% easy-twitter-feed-widget

Code Review | Easy Twitter Feed Widget Plugin

WordPress plugin Easy Twitter Feed Widget Plugin scored78%from 54 tests.

About plugin

  • Plugin page: easy-twitter-feed...
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 4, 2014
  • Latest release: Dec 20, 2017
  • Number of updates: 34
  • Update frequency: every 42.5 days
  • Top authors: designorbital (100%)

Code review

54 tests

User reviews

56 reviews

Install metrics

30,000+ active /495,001 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼9.50ms] Passed 4 tests

An overview of server-side resources used by Easy Twitter Feed Widget Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0942.24 ▼0.84
Dashboard /wp-admin3.42 ▲0.0749.40 ▼20.82
Posts /wp-admin/edit.php3.53 ▲0.1745.99 ▼10.18
Add New Post /wp-admin/post-new.php6.00 ▲0.1197.68 ▼6.16
Media Library /wp-admin/upload.php3.34 ▲0.1137.31 ▲0.96
Easy Twitter Feed Widget /wp-admin/options-general.php?page=do-etfw-options3.3233.14

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_do-etfw
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Twitter Feed Widget Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲17214.18 ▼0.5237.38 ▲35.7143.78 ▲5.23
Dashboard /wp-admin2,202 ▲255.62 ▼0.0286.90 ▼6.9841.38 ▼2.98
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0435.44 ▼5.5637.41 ▼4.26
Add New Post /wp-admin/post-new.php1,529 ▲122.95 ▼0.36692.77 ▲18.3063.14 ▲6.08
Media Library /wp-admin/upload.php1,404 ▲44.18 ▲0.01100.71 ▼15.3345.69 ▲1.47
Easy Twitter Feed Widget /wp-admin/options-general.php?page=do-etfw-options1,0001.6827.4333.52

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_do-etfw

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require(): Failed opening required 'DO_ETFW_DIR/inc/widget-twitter.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-twitter-feed-widget/inc/widgets.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/easy-twitter-feed-widget/easy-twitter-feed-widget.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-twitter-feed-widget/inc/extras.php:70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-twitter-feed-widget/inc/widget-twitter.php:13
    • > PHP Warning
      require(DO_ETFW_DIR/inc/widget-twitter.php): failed to open stream: No such file or directory in wp-content/plugins/easy-twitter-feed-widget/inc/widgets.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-twitter-feed-widget/inc/admin.php:12
    • > PHP Warning
      Use of undefined constant DO_ETFW_DIR - assumed 'DO_ETFW_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-twitter-feed-widget/inc/widgets.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/easy-twitter-feed-widget/inc/settings-page.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=do-etfw-options
    • > Javascript (severe) in unknown
    /wp-content/plugins/easy-twitter-feed-widget/js/hashchange.js?ver=6.3.1 299:14 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

easy-twitter-feed-widget/easy-twitter-feed-widget.php 92% from 13 tests

The main PHP file in "Easy Twitter Feed Widget Plugin" ver. 0.9 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,153 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5206424630
PHP6137193452
CSS181171

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin