10% widget-embed-lastest-tweets

Code Review | Widget embed latest Tweets

WordPress plugin Widget embed latest Tweets scored 10% from 54 tests.

About plugin

  • Plugin page: widget-embed-last...
  • Plugin version: 0.6.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4.1
  • WordPress version: 5.9.2
  • First release: Aug 17, 2012
  • Latest release: Jan 7, 2016
  • Number of updates: 44
  • Update frequency: every 28.2 days
  • Top authors: ArnaudBan (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 17,913 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/widget-embed-lastest-tweets/widget-embed-latest-tweets.php+246
    Function create_function() is deprecated

Server metrics [RAM: ▼2.53MB] [CPU: ▼349.68ms] Passed 4 tests

Server-side resources used by Widget embed latest Tweets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.674.17 ▼51.39
Dashboard /wp-admin1.86 ▼1.554.47 ▼28.33
Posts /wp-admin/edit.php1.86 ▼1.784.33 ▼34.19
Add New Post /wp-admin/post-new.php1.86 ▼5.114.53 ▼1,284.82
Media Library /wp-admin/upload.php1.86 ▼1.444.26 ▼18.39
Widget Embed Latest Tweet /wp-admin/options-general.php?page=welt_options_page1.863.92

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options
widget_welt_last_tweets

Browser metrics Passed 4 tests

This is an overview of browser requirements for Widget embed latest Tweets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1415.77 ▲0.065.80 ▼0.112.19 ▼0.53
Dashboard /wp-admin2,897 ▲366.17 ▼0.04117.50 ▼20.66153.88 ▼5.18
Posts /wp-admin/edit.php2,696 ▲53.23 ▲0.0066.82 ▲3.92139.59 ▼2.87
Add New Post /wp-admin/post-new.php1,714 ▲5321.45 ▲5.60438.95 ▲8.16159.17 ▲3.43
Media Library /wp-admin/upload.php1,703 ▲55.52 ▲0.03141.90 ▼1.48177.33 ▼11.93
Widget Embed Latest Tweet /wp-admin/options-general.php?page=welt_options_page1,0722.3953.30122.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/widget-embed-lastest-tweets/widget-embed-latest-tweets.php+246
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_welt_last_tweets

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=welt_options_page
    • > Deprecated in wp-content/plugins/widget-embed-lastest-tweets/widget-embed-latest-tweets.php+246
    Function create_function() is deprecated

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 items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widget-embed-lastest-tweets/welt-option.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget-embed-lastest-tweets/widget-embed-latest-tweets.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === widget-embed-lastest-tweets === )
You can take inspiration from this readme.txt

widget-embed-lastest-tweets/widget-embed-latest-tweets.php 85% from 13 tests

The main PHP file in "Widget embed latest Tweets" ver. 0.6.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 156 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("widget-embed-lastest-tweets.php" instead of "widget-embed-latest-tweets.php")

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
Good job! No executable or dangerous file extensions detected1,137 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53424261,015
PO File1303594
JavaScript115428

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes215.38%
▷ Concrete classes1184.62%
▷ Final classes00.00%
Methods80
▷ Static methods1012.50%
▷ Public methods6986.25%
▷ Protected methods22.50%
▷ Private methods911.25%
Functions18
▷ Named functions18100.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
PNG images were not found in this plugin