10% ai-twitter-feeds

Code Review | AI Twitter Feeds (Twitter widget & shortcode)

WordPress plugin AI Twitter Feeds (Twitter widget & shortcode) scored10%from 54 tests.

About plugin

  • Plugin page: ai-twitter-feeds
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2013
  • Latest release: Jul 2, 2020
  • Number of updates: 48
  • Update frequency: every 53.1 days
  • Top authors: augustinfotech (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

1,000+ active /45,042 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
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/ai-twitter-feeds/ai-twitter-feeds.php+401
    Methods with the same name as their class will not be constructors in a future version of PHP; AI_Twitter_Widget has a deprecated constructor

Server metrics [RAM: ▼1.75MB] [CPU: ▼55.80ms] Passed 4 tests

Analyzing server-side resources used by AI Twitter Feeds (Twitter widget & shortcode)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.235.95 ▼38.74
Dashboard /wp-admin2.25 ▼1.056.41 ▼46.41
Posts /wp-admin/edit.php2.25 ▼1.106.06 ▼42.98
Add New Post /wp-admin/post-new.php2.25 ▼3.637.12 ▼95.07
Media Library /wp-admin/upload.php2.25 ▼0.978.09 ▼28.96
AI Twitter Settings /wp-admin/options-general.php?page=ai-plugin2.256.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by AI Twitter Feeds (Twitter widget & shortcode)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲19313.92 ▼0.698.84 ▲7.3342.91 ▲1.01
Dashboard /wp-admin2,245 ▲685.83 ▲0.1792.72 ▲0.5641.12 ▲3.26
Posts /wp-admin/edit.php2,104 ▲42.31 ▲0.2935.70 ▼2.4433.61 ▼4.21
Add New Post /wp-admin/post-new.php1,547 ▲2123.26 ▲0.36682.57 ▲2.5338.88 ▼14.79
Media Library /wp-admin/upload.php1,427 ▲304.35 ▲0.1589.20 ▼11.0642.82 ▼3.09
AI Twitter Settings /wp-admin/options-general.php?page=ai-plugin1,0131.9426.1727.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/ai-twitter-feeds/ai-twitter-feeds.php+401
    Methods with the same name as their class will not be constructors in a future version of PHP; AI_Twitter_Widget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_ai_widget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=ai-plugin
    • > Deprecated in wp-content/plugins/ai-twitter-feeds/ai-twitter-feeds.php+401
    Methods with the same name as their class will not be constructors in a future version of PHP; AI_Twitter_Widget has a deprecated constructor

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-twitter-feeds/ai-twitter-feeds.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (Widget Setting example in admin.), #2 (Widget view on front side.), #3 (Use Shortcode OR PHP code in Post/Template.), #4 (Settings Screen from WordPress Admin.), #5 (WordPress Admin Tweets Display In Dashboard.)
Please take inspiration from this readme.txt

ai-twitter-feeds/ai-twitter-feeds.php 85% from 13 tests

The primary PHP file in "AI Twitter Feeds (Twitter widget & shortcode)" version 2.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 360 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,337 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32313541,134
CSS1022178
JavaScript25225

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.38
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity10.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%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.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
5 PNG files occupy 0.47MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png84.46KB23.50KB▼ 72.18%
screenshot-4.png173.62KB53.03KB▼ 69.45%
screenshot-1.png13.33KB6.26KB▼ 53.01%
screenshot-3.png128.13KB46.99KB▼ 63.33%
screenshot-2.png85.99KB26.27KB▼ 69.45%