84% iframecatcher

Code Review | iframecatcher

WordPress plugin iframecatcher scored84%from 54 tests.

About plugin

  • Plugin page: iframecatcher
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4
  • WordPress version: 6.3.1
  • First release: Oct 22, 2014
  • Latest release: Apr 10, 2015
  • Number of updates: 7
  • Update frequency: every 24.3 days
  • Top authors: Alireza Pagheh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /3,793 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.21MB] [CPU: ▼43.08ms] Passed 4 tests

This is a short check of server-side resources used by iframecatcher
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.77 ▼0.7013.09 ▼24.26
Dashboard /wp-admin2.81 ▼0.5015.75 ▼32.81
Posts /wp-admin/edit.php2.81 ▼0.5515.96 ▼31.14
Add New Post /wp-admin/post-new.php2.81 ▼3.0815.72 ▼84.11
Media Library /wp-admin/upload.php2.81 ▼0.4215.14 ▼18.43

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
banned_urls_arsha
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
banned_ips_arsha

Browser metrics Passed 4 tests

Checking browser requirements for iframecatcher
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.58 ▼0.801.68 ▼0.0141.19 ▼1.13
Dashboard /wp-admin2,213 ▲225.79 ▼0.1095.21 ▼11.9741.79 ▲0.13
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0640.18 ▲2.3640.38 ▲5.26
Add New Post /wp-admin/post-new.php1,540 ▲2123.12 ▲0.03692.88 ▼4.5768.53 ▲13.61
Media Library /wp-admin/upload.php1,395 ▲74.17 ▼0.0997.59 ▼11.8146.00 ▼2.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • banned_ips_arsha
    • banned_urls_arsha
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iframecatcher/index.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

iframecatcher/index.php 92% from 13 tests

The principal PHP file in "iframecatcher" v. 2.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("iframecatcher.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11752

PHP code Passed 2 tests

Analyzing 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 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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin