78% accesspress-twitter-feed

Code Review | WP TFeed

WordPress plugin WP TFeed scored 78% from 54 tests.

About plugin

  • Plugin page: accesspress-twitt...
  • Plugin version: 1.6.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.9.2
  • First release: Mar 13, 2015
  • Latest release: Dec 2, 2021
  • Number of updates: 89
  • Update frequency: every 27.6 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

10,000+ active / 654,273 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼294.64ms] Passed 4 tests

Server-side resources used by WP TFeed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3154.31 ▲3.27
Dashboard /wp-admin3.67 ▲0.2534.61 ▲0.04
Posts /wp-admin/edit.php3.89 ▲0.2540.90 ▲3.84
Add New Post /wp-admin/post-new.php7.20 ▲0.22101.05 ▼1,175.14
Media Library /wp-admin/upload.php3.60 ▲0.3025.29 ▼6.71

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 3 new options
New WordPress options
widget_aptf_widget
aptf_settings
widget_aptf_slider_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP TFeed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,920 ▲16616.54 ▲0.5510.35 ▲3.372.09 ▼0.36
Dashboard /wp-admin2,912 ▲556.22 ▲0.02117.79 ▼18.86155.27 ▼3.71
Posts /wp-admin/edit.php2,708 ▲143.23 ▼0.0264.57 ▲1.30142.37 ▲0.05
Add New Post /wp-admin/post-new.php1,674 ▼3721.77 ▲0.98398.05 ▼57.84162.88 ▲5.10
Media Library /wp-admin/upload.php1,718 ▲205.53 ▲0.01139.82 ▼5.83190.31 ▼2.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 3 options
    • aptf_settings
    • widget_aptf_slider_widget
    • widget_aptf_widget

Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/accesspress-twitter-feed/accesspress-twitter-feed.php
    • > /wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/slider/template-3.php
    • > /wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/tweet-media.php
    • > /wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/default/template-3.php
    • > /wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/default/template-2.php
    • > /wp-content/plugins/accesspress-twitter-feed/inc/backend/slider-widget.php
    • > /wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/tweet-actions.php
    • > /wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/default/template-1.php
    • > /wp-content/plugins/accesspress-twitter-feed/inc/backend/widget.php
    • > /wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/slider/template-2.php
  • 31× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: slide_controls in wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/slider/template-2.php on line 1
    • > PHP Notice
      Undefined variable: auto_slide in wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/slider/template-3.php on line 1
    • > PHP Notice
      Undefined variable: tweets in wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/slider/template-2.php on line 2
    • > PHP Notice
      Undefined variable: tweet in wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/tweet-actions.php on line 4
    • > PHP Notice
      Trying to get property 'id_str' of non-object in wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/tweet-actions.php on line 2
    • > PHP Notice
      Undefined variable: auto_slide in wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/slider/template-2.php on line 1
    • > PHP Notice
      Undefined variable: auto_slide in wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/slider/template-1.php on line 1
    • > PHP Notice
      Undefined variable: username in wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/follow-btn.php on line 2
    • > PHP Notice
      Undefined variable: slide_duration in wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/slider/template-3.php on line 1
    • > PHP Notice
      Undefined variable: slide_duration in wp-content/plugins/accesspress-twitter-feed/inc/frontend/templates/slider/template-1.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

accesspress-twitter-feed/accesspress-twitter-feed.php Passed 13 tests

The main PHP file in "WP TFeed" ver. 1.6.8 adds more information about the plugin and also serves as the entry point for this plugin
82 characters long description:
A plugin to show your twitter feed in your site with various configurable settings

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
Success! There were no dangerous files found in this plugin3,619 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP255148732,697
CSS44341629
SVG100257
JavaScript371436

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.29
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes28
▷ Abstract classes414.29%
▷ Concrete classes2485.71%
▷ Final classes00.00%
Methods189
▷ Static methods2010.58%
▷ Public methods16486.77%
▷ Protected methods42.12%
▷ Private methods2111.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.31MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/aplite.png6.73KB3.22KB▼ 52.21%
images/plugin.png12.50KB5.31KB▼ 57.50%
images/upgrade.png92.63KB23.62KB▼ 74.50%
images/upgrade-features.png99.67KB27.12KB▼ 72.79%
images/logo.png3.55KB2.09KB▼ 41.09%