84% bloglovin-widget

Code Review | Bloglovin Widget

WordPress plugin Bloglovin Widget scored84%from 54 tests.

About plugin

  • Plugin page: bloglovin-widget
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.3
  • WordPress version: 6.3.1
  • First release: May 4, 2015
  • Latest release: Sep 29, 2015
  • Number of updates: 39
  • Update frequency: every 16.4 days
  • Top authors: pipdig (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /4,195 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.81ms] Passed 4 tests

A check of server-side resources used by Bloglovin Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.99 ▼1.00
Dashboard /wp-admin3.31 ▲0.0046.07 ▼9.12
Posts /wp-admin/edit.php3.36 ▲0.0046.85 ▼4.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.18 ▼8.44
Media Library /wp-admin/upload.php3.23 ▲0.0033.13 ▼0.66

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bloglovin Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.061.81 ▲0.1540.64 ▼3.94
Dashboard /wp-admin2,189 ▲125.65 ▼0.0095.31 ▼8.5539.73 ▼4.38
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0340.06 ▲3.1836.20 ▲2.16
Add New Post /wp-admin/post-new.php1,526 ▼023.67 ▲0.08682.71 ▼5.9258.94 ▲0.31
Media Library /wp-admin/upload.php1,394 ▼34.24 ▲0.0398.29 ▼6.0144.92 ▼1.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bloglovin-widget/inc/customizer.php:119

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

bloglovin-widget/bloglovin-widget.php Passed 13 tests

This is the main PHP file of "Bloglovin Widget" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
This plugin is no longer supported. Please use the "Bloglovin Button" plugin instead.

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
Success! There were no dangerous files found in this plugin524 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File4120161461
PHP43311156
JavaScript1017

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.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
No PNG files were detected