90% block-bloglovin-iframe

Code Review | Block Bloglovin Iframe

WordPress plugin Block Bloglovin Iframe scored90%from 54 tests.

About plugin

  • Plugin page: block-bloglovin-i...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Aug 10, 2023
  • Number of updates: 16
  • Update frequency: every 144.3 days
  • Top authors: pipdig (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,406 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Block Bloglovin Iframe
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.25 ▼0.73
Dashboard /wp-admin3.31 ▲0.0050.03 ▲4.63
Posts /wp-admin/edit.php3.36 ▲0.0047.32 ▲1.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.19 ▼17.92
Media Library /wp-admin/upload.php3.23 ▲0.0034.00 ▲3.52

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Block Bloglovin Iframe
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲5713.23 ▼1.141.80 ▼0.4540.78 ▼3.66
Dashboard /wp-admin2,203 ▲185.84 ▲0.9693.59 ▼13.9638.26 ▼8.08
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0539.21 ▲3.8934.18 ▼2.34
Add New Post /wp-admin/post-new.php1,547 ▲3318.27 ▲0.79594.50 ▼86.6667.69 ▲16.73
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0193.03 ▼7.9543.57 ▲0.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: bloglovin, iframe, blog

block-bloglovin-iframe/block-bloglovin-iframe.php Passed 13 tests

Analyzing the main PHP file in "Block Bloglovin Iframe" version 1.0.1
122 characters long description:
Stop your blog from showing inside of the Bloglovin iframe. Instead, visitors will be redirected to your actual blog post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected15 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP251915

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin