10% feed-reading-blogroll

Code Review | WP Social Blogroll

WordPress plugin WP Social Blogroll scored10%from 54 tests.

About plugin

  • Plugin page: feed-reading-blog...
  • Plugin version: 1.5.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Jun 14, 2008
  • Latest release: Oct 14, 2013
  • Number of updates: 440
  • Update frequency: every 4.5 days
  • Top authors: Erunafailaro (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /66,823 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/feed-reading-blogroll/feedreading_blogroll.php+2482
    Methods with the same name as their class will not be constructors in a future version of PHP; FeedReadingBlogrollWidget has a deprecated constructor

Server metrics [RAM: ▼0.98MB] [CPU: ▼50.72ms] Passed 4 tests

Server-side resources used by WP Social Blogroll
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.01 ▼0.456.32 ▼35.16
Dashboard /wp-admin3.03 ▼0.3114.63 ▼44.05
Posts /wp-admin/edit.php3.04 ▼0.328.88 ▼33.51
Add New Post /wp-admin/post-new.php3.03 ▼2.858.88 ▼90.15
Media Library /wp-admin/upload.php3.03 ▼0.198.37 ▼27.03

Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • Illegal file modification found: 1 file (4.53KB) outside of "wp-content/plugins/feed-reading-blogroll/" and "wp-content/uploads/"
    • (new file) wp-content/feedreading_blogroll.js
Filesystem: 47 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_feedreadingblogroll
feedreading_blogroll_settings
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP Social Blogroll
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16713.66 ▼0.706.09 ▲4.2836.94 ▼2.10
Dashboard /wp-admin2,214 ▲225.80 ▲0.8296.41 ▼14.5575.38 ▲31.18
Posts /wp-admin/edit.php2,097 ▲81.97 ▼0.0634.83 ▲1.2934.09 ▼2.22
Add New Post /wp-admin/post-new.php1,527 ▼118.27 ▼4.96691.40 ▲13.5259.97 ▲5.61
Media Library /wp-admin/upload.php1,393 ▲24.09 ▼0.0696.63 ▼9.6673.80 ▲30.55
WP Social Blogroll /wp-admin/feedreading_blogroll.php260.440.0914.09

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
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/feed-reading-blogroll/feedreading_blogroll.php+2482
    Methods with the same name as their class will not be constructors in a future version of PHP; FeedReadingBlogrollWidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_feedreadingblogroll
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/feed-reading-blogroll/feedreading_blogroll.php:46

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/feedreading_blogroll.php
    • > Network (severe)
    wp-admin/feedreading_blogroll.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (This is an example of what the Blogroll might look like, when you have installed this plugin. Notice that the entries are sorted by the latest update of the bookmark.), #2 (This is a screenshot of the settings-page. It shows the Options-tab. Notice that you can change the order of the categories by draggging and dropping them with your mouse.), #3 (This is a screenshot of the remaining settings you can perform.), #4 (Use snapshot-services like snap.com with WP Social Blogroll.)
The official readme.txt might help

feed-reading-blogroll/feedreading_blogroll.php 85% from 13 tests

The main file in "WP Social Blogroll" v. 1.5.9.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("feed-reading-blogroll.php" instead of "feedreading_blogroll.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
No dangerous file extensions were detected7,574 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PO File161,8512,8044,138
PHP22243642,288
JavaScript4144193998
CSS24298123
XML10027

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity22.00
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods650.00%
▷ Protected methods650.00%
▷ Private methods00.00%
Functions39
▷ Named functions39100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png9.40KB5.73KB▼ 39.05%
screenshot-2.png50.17KB25.30KB▼ 49.57%
screenshot-3.png36.26KB22.57KB▼ 37.77%
screenshot-4.png92.56KB34.44KB▼ 62.80%