68% jk-twitter-feeds

Code Review | JK Twitter Feeds

WordPress plugin JK Twitter Feeds scored68%from 54 tests.

About plugin

  • Plugin page: jk-twitter-feeds
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.5.2
  • WordPress version: 6.3.1
  • First release: Jul 4, 2016
  • Latest release: Jun 22, 2016
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: jaykrishnang (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.37ms] Passed 4 tests

Server-side resources used by JK Twitter Feeds
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.98 ▼7.86
Dashboard /wp-admin3.36 ▲0.0656.78 ▼0.17
Posts /wp-admin/edit.php3.41 ▲0.0659.43 ▲3.34
Add New Post /wp-admin/post-new.php5.94 ▲0.06104.86 ▼12.64
Media Library /wp-admin/upload.php3.28 ▲0.0642.29 ▲3.19

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

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

Browser metrics Passed 4 tests

Checking browser requirements for JK Twitter Feeds
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.72 ▲0.091.59 ▼0.2842.64 ▼2.85
Dashboard /wp-admin2,211 ▲315.61 ▼0.0593.96 ▼1.0243.30 ▲3.24
Posts /wp-admin/edit.php2,116 ▲162.00 ▲0.0639.47 ▼2.2936.84 ▲1.20
Add New Post /wp-admin/post-new.php1,539 ▲123.65 ▲0.41647.41 ▼41.0349.32 ▼0.07
Media Library /wp-admin/upload.php1,413 ▲164.15 ▼0.07102.90 ▼0.3650.12 ▲6.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_jk_twitter_widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/jk-twitter-feeds/libraries/Twitter/index.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined index: text in wp-content/plugins/jk-twitter-feeds/libraries/Twitter/index.php on line 28
    • > PHP Fatal error
      Uncaught Error: Class 'Abraham\\TwitterOAuth\\SignatureMethod' not found in wp-content/plugins/jk-twitter-feeds/libraries/Twitter/HmacSha1.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: wordpress, plugin, api, feeds, twitter

jk-twitter-feeds/jk-twitter-feeds.php Passed 13 tests

Analyzing the main PHP file in "JK Twitter Feeds" version 1.0.0
14 characters long description:
Twitter Feeds.

Code Analysis 5% from 3 tests

File types 0% from 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
Please fix the following items
  • For security reasons, never distribute binary or executable files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/jk-twitter-feeds/libraries/Twitter/ca-bundle.crt
1,336 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP152936751,298
JavaScript18332
CSS1106

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.28
Average class complexity5.96
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes23
▷ Abstract classes313.04%
▷ Concrete classes2086.96%
▷ Final classes00.00%
Methods125
▷ Static methods1713.60%
▷ Public methods11491.20%
▷ Protected methods21.60%
▷ Private methods97.20%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
No PNG images were found in this plugin