10% express-twitter-feed

Code Review | Express Twitter Feed

WordPress plugin Express Twitter Feed scored 10% from 54 tests.

About plugin

  • Plugin page: express-twitter-feed
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.3
  • WordPress version: 5.8.1
  • First release: Mar 22, 2017
  • Latest release: Mar 31, 2017
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: pacecreative (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 329 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/express-twitter-feed/api/twitter/lib/twitter-api-core.php+62
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.66MB] [CPU: ▼186.67ms] Passed 4 tests

Server-side resources used by Express Twitter Feed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.91 ▼0.816.47 ▼13.99
Dashboard /wp-admin1.99 ▼1.079.54 ▼38.29
Posts /wp-admin/edit.php1.99 ▼1.126.89 ▼37.40
Add New Post /wp-admin/post-new.php1.99 ▼3.456.63 ▼642.93
Media Library /wp-admin/upload.php1.99 ▼1.016.19 ▼28.06
Express Twitter Feed /wp-admin/options-general.php?page=extf1.996.63

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 2 new options
New WordPress options
extf_options
extf_display_options

Browser metrics Passed 4 tests

An overview of browser requirements for Express Twitter Feed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲20617.15 ▲1.1324.53 ▲16.0754.02 ▲5.35
Dashboard /wp-admin3,002 ▲716.58 ▲0.68143.85 ▲8.26108.12 ▼6.07
Posts /wp-admin/edit.php2,777 ▲382.75 ▲0.0666.89 ▼1.62112.36 ▲20.90
Add New Post /wp-admin/post-new.php1,703 ▲3118.31 ▼0.56348.59 ▼22.96110.51 ▲6.81
Media Library /wp-admin/upload.php1,842 ▲355.44 ▲0.43130.77 ▼10.04121.09 ▲2.24
Express Twitter Feed /wp-admin/options-general.php?page=extf1,2632.5861.5883.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/express-twitter-feed/api/twitter/lib/twitter-api-core.php+62
    Array and string offset access syntax with curly braces is deprecated

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=extf
    • > Deprecated in wp-content/plugins/express-twitter-feed/api/twitter/lib/twitter-api-utils.php+119
    Array and string offset access syntax with curly braces is deprecated

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
The following issues need your attention
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/express-twitter-feed/api/twitter/test/utils/UnicodeTest.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/express-twitter-feed/api/twitter/test/utils/EmojiTest.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/express-twitter-feed/api/twitter/lang/extra/twitter-errors.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/express-twitter-feed/admin/settings-page.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/express-twitter-feed/api/twitter/lib/twitter-api-admin.php:196
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/express-twitter-feed/api/twitter/twitter-api.php:147
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/express-twitter-feed/api/twitter/test/utils/HtmlTest.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
6 plugin tags: oauth, quick, express, feed, easy...

express-twitter-feed/express-twitter-feed.php 92% from 13 tests

"Express Twitter Feed" version 0.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,084 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP175134462,579
PO File104874891,212
CSS21125108
Markdown241097
JavaScript213337
Bourne Shell211635
XML12016

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity7.33
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods50
▷ Static methods510.00%
▷ Public methods4692.00%
▷ Protected methods00.00%
▷ Private methods48.00%
Functions75
▷ Named functions75100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin