10% wp-simple-twitter-feed

Code Review | WP Simple Twitter Feed

WordPress plugin WP Simple Twitter Feed scored10%from 54 tests.

About plugin

  • Plugin page: wp-simple-twitter...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Aug 13, 2015
  • Latest release: Sep 9, 2015
  • Number of updates: 9
  • Update frequency: every 3.3 days
  • Top authors: psdtohtmlguru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,106 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
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-simple-twitter-feed/twitter-feed-widget.php+516
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.02ms] Passed 4 tests

Analyzing server-side resources used by WP Simple Twitter Feed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.49 ▼34.06
Dashboard /wp-admin2.05 ▼1.265.46 ▼40.59
Posts /wp-admin/edit.php2.05 ▼1.316.90 ▼42.30
Add New Post /wp-admin/post-new.php2.05 ▼3.845.89 ▼91.13
Media Library /wp-admin/upload.php2.05 ▼1.185.04 ▼28.58

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Simple Twitter Feed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.44 ▲0.061.77 ▲0.1242.71 ▼0.27
Dashboard /wp-admin2,215 ▲305.81 ▼0.0395.69 ▼5.6237.92 ▲2.22
Posts /wp-admin/edit.php2,101 ▲122.01 ▲0.0340.10 ▲2.4635.81 ▲3.47
Add New Post /wp-admin/post-new.php1,543 ▲923.27 ▲0.27644.49 ▲48.9164.21 ▲9.22
Media Library /wp-admin/upload.php1,397 ▲94.23 ▲0.0696.38 ▼3.6344.80 ▲0.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/wp-simple-twitter-feed/twitter-feed-widget.php+516
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_twitter-feed-widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wp-simple-twitter-feed/view/settings_page.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-simple-twitter-feed/twitter-feed-widget.php:19

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 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: There are too many tags (16 tag instead of maximum 10)
The official readme.txt is a good inspiration

wp-simple-twitter-feed/twitter-feed-widget.php 77% from 13 tests

The principal PHP file in "WP Simple Twitter Feed" v. 1.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.5")
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-simple-twitter-feed.php" instead of "twitter-feed-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin790 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4117224518
CSS2181122
Sass121095
JavaScript1183055

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity28.00
▷ Minimum class complexity19.00
▷ Maximum class complexity37.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods1248.00%
▷ Public methods2392.00%
▷ Protected methods00.00%
▷ Private methods28.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected