10% sb-insights-rss-widget

Code Review | SB Insights RSS Feed Plugin

WordPress plugin SB Insights RSS Feed Plugin scored 10% from 54 tests.

About plugin

  • Plugin page: sb-insights-rss-w...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-1.0
  • WordPress version: 5.8.1
  • First release: Oct 2, 2015
  • Latest release: Nov 13, 2015
  • Number of updates: 6
  • Update frequency: every 7.7 days
  • Top authors: carlos-ruiz-jd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 438 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/sb-insights-rss-widget/insights-samsung-feed.widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; InsightsSamsungFeedWidget has a deprecated constructor

Server metrics [RAM: ▼1.84MB] [CPU: ▼187.51ms] Passed 4 tests

A check of server-side resources used by SB Insights RSS Feed Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.79 ▼0.935.81 ▼15.56
Dashboard /wp-admin1.81 ▼1.245.23 ▼41.62
Posts /wp-admin/edit.php1.81 ▼1.305.26 ▼32.83
Add New Post /wp-admin/post-new.php1.81 ▼3.625.96 ▼646.69
Media Library /wp-admin/upload.php1.81 ▼1.195.21 ▼28.88

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options
widget_insightssamsungfeedwidget

Browser metrics Passed 4 tests

This is an overview of browser requirements for SB Insights RSS Feed Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10816.38 ▲0.477.74 ▼5.2549.22 ▲1.98
Dashboard /wp-admin2,973 ▲395.89 ▼0.18132.62 ▼10.31112.97 ▲1.09
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0066.64 ▲4.4689.93 ▼0.93
Add New Post /wp-admin/post-new.php1,672 ▲17219.01 ▲0.09379.13 ▲26.70118.21 ▲5.63
Media Library /wp-admin/upload.php1,807 ▲35.01 ▼0.05148.02 ▲2.86122.68 ▲2.56

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/sb-insights-rss-widget/insights-samsung-feed.widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; InsightsSamsungFeedWidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_insightssamsungfeedwidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sb-insights-rss-widget/views/insights-samsung-feed.widget.view.php:5
    • > PHP Notice
      Undefined variable: category_url in wp-content/plugins/sb-insights-rss-widget/views/insights-samsung-feed.widget.view.php on line 5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/sb-insights-rss-widget/views/insights-samsung-feed.widget.form.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sb-insights-rss-widget/insights-samsung-feed.widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sb-insights-rss-widget/insights-samsung-feed.widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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: support, services, mobile, security, samsung...

sb-insights-rss-widget/insights-samsung-feed.php 92% from 13 tests

"SB Insights RSS Feed Plugin" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("sb-insights-rss-widget.php" instead of "insights-samsung-feed.php")

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
No dangerous file extensions were detected213 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP54629145
CSS115168

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/samsung-logo.png7.51KB5.49KB▼ 26.93%