10% soundst-feedwire

Code Review | Soundst FeedWire

WordPress plugin Soundst FeedWire scored10%from 54 tests.

About plugin

  • Plugin page: soundst-feedwire
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.4
  • WordPress version: 6.3.1
  • First release: May 22, 2013
  • Latest release: Feb 12, 2018
  • Number of updates: 31
  • Update frequency: every 55.9 days
  • Top authors: SoundStrategies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,025 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/soundst-feedwire/soundst-feed-wire.php+1517
    Methods with the same name as their class will not be constructors in a future version of PHP; FW_Widget has a deprecated constructor

Server metrics [RAM: ▼1.69MB] [CPU: ▼47.97ms] Passed 4 tests

An overview of server-side resources used by Soundst FeedWire
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.29 ▼1.1711.50 ▼31.36
Dashboard /wp-admin2.32 ▼0.9812.11 ▼42.42
Posts /wp-admin/edit.php2.32 ▼1.0412.00 ▼37.47
Add New Post /wp-admin/post-new.php2.32 ▼3.5710.42 ▼80.63
Media Library /wp-admin/upload.php2.32 ▼0.919.53 ▼26.03
Wire /wp-admin/edit.php?post_type=fw_headlines2.3210.29
Settings /wp-admin/admin.php?page=FWPluginPage2.3210.02

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 24 new options
New WordPress options
fw_wdtf_size
theysaidso_admin_options
fw_pdtf_size
fw_w_vrtpadding
fw_w_paddingbts
fw_p_paddingbts
fw_w_hrzpadding
fw_w_paddingbe
fw_p_paddingbe
fw_line_height
...

Browser metrics Passed 4 tests

A check of browser resources used by Soundst FeedWire
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲10713.26 ▼0.912.17 ▲0.0344.74 ▼1.37
Dashboard /wp-admin2,249 ▲465.84 ▼0.05111.68 ▼6.5243.13 ▼1.67
Posts /wp-admin/edit.php2,125 ▲252.01 ▲0.0134.07 ▼4.9239.00 ▲3.41
Add New Post /wp-admin/post-new.php1,550 ▲1917.54 ▼5.51677.58 ▲67.1858.54 ▲4.28
Media Library /wp-admin/upload.php1,428 ▲254.32 ▲0.1598.43 ▼5.5142.34 ▼5.14
Wire /wp-admin/edit.php?post_type=fw_headlines1,1351.9433.6432.97
Settings /wp-admin/admin.php?page=FWPluginPage1,1462.0524.8033.61

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
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in FW_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin did not uninstall successfully, leaving 24 options in the database
    • fw_whf_size
    • widget_fw-widget
    • fw_p_paddingbts
    • fw_w_paddingbe
    • widget_recent-posts
    • fw_p_paddingbe
    • fw_w_hrzpadding
    • widget_recent-comments
    • fw_w_vrtpadding
    • db_upgraded
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=FWPluginPage
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in FW_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=fw_headlines
    • > Warning in wp-content/plugins/soundst-feedwire/fw_type.php+205
    Use of undefined constant Title - assumed 'Title' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=fw_headlines
    • > Warning in wp-content/plugins/soundst-feedwire/fw_type.php+206
    Use of undefined constant Date - assumed 'Date' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=fw_headlines
    • > Warning in wp-content/plugins/soundst-feedwire/fw_type.php+207
    Use of undefined constant Display - assumed 'Display' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=fw_headlines
    • > Warning in wp-content/plugins/soundst-feedwire/fw_type.php+208
    Use of undefined constant Source - assumed 'Source' (this will throw an Error in a future version of PHP)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=FWPluginPage
    • > Notice in wp-content/plugins/soundst-feedwire/soundst-feed-wire.php+943
    Trying to access array offset on value of type bool
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=FWPluginPage
    • > Notice in wp-content/plugins/soundst-feedwire/soundst-feed-wire.php+943
    Trying to access array offset on value of type null

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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/soundst-feedwire/soundst-feed-wire.php:72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/soundst-feedwire/fw-bulk-actions.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/soundst-feedwire/fw_type.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Donate link: Invalid url: "None"
Please take inspiration from this readme.txt

soundst-feedwire/soundst-feed-wire.php 85% from 13 tests

The principal PHP file in "Soundst FeedWire" v. 1.3.4 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 255 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("soundst-feedwire.php" instead of "soundst-feed-wire.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,212 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33222092,062
CSS10177
JavaScript1192173

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity33.00
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods44
▷ Static methods24.55%
▷ Public methods4397.73%
▷ Protected methods00.00%
▷ Private methods12.27%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin