84% simple-iframe-buster

Code Review | Simple Iframe Buster

WordPress plugin Simple Iframe Buster scored84%from 54 tests.

About plugin

  • Plugin page: simple-iframe-buster
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.7.2
  • WordPress version: 6.3.1
  • First release: May 30, 2014
  • Latest release: Aug 14, 2021
  • Number of updates: 13
  • Update frequency: every 202.5 days
  • Top authors: vizkr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /5,248 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.36ms] Passed 4 tests

An overview of server-side resources used by Simple Iframe Buster
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.08 ▼2.84
Dashboard /wp-admin3.32 ▲0.0144.03 ▼7.46
Posts /wp-admin/edit.php3.37 ▲0.0146.47 ▼0.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.03 ▼10.92
Media Library /wp-admin/upload.php3.24 ▲0.0133.20 ▲0.86

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Simple Iframe Buster: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.19 ▼1.101.86 ▼0.0443.12 ▼5.08
Dashboard /wp-admin2,197 ▲95.81 ▼0.2498.42 ▼18.6740.40 ▼5.41
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0335.87 ▼3.2231.40 ▼1.87
Add New Post /wp-admin/post-new.php1,535 ▼123.10 ▼0.28650.01 ▼29.2550.62 ▼5.04
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.03105.30 ▲7.8949.79 ▲7.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-iframe-buster/plugin.php:60

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Since there's no settings page there is nothing to see here... yet.)
You can take inspiration from this readme.txt

simple-iframe-buster/plugin.php 92% from 13 tests

The entry point to "Simple Iframe Buster" version 1.1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-iframe-buster.php" instead of "plugin.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
Good job! No executable or dangerous file extensions detected88 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1213948
Markdown123034
JavaScript1036

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods228.57%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin