10% iframe-killer

Code Review | iframe Killer

WordPress plugin iframe Killer scored10%from 54 tests.

About plugin

  • Plugin page: iframe-killer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 12, 2017
  • Latest release: Jun 12, 2017
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: jitengaikwad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,606 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method iframekiller::InitializeReg() should not be called statically

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

A check of server-side resources used by iframe Killer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.83 ▼4.56
Dashboard /wp-admin3.31 ▲0.0045.89 ▼5.87
Posts /wp-admin/edit.php3.36 ▲0.0047.65 ▲0.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.09 ▼13.14
Media Library /wp-admin/upload.php3.23 ▲0.0034.60 ▼5.12

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

iframe Killer: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.39 ▲0.042.50 ▲0.9245.72 ▲4.21
Dashboard /wp-admin2,195 ▲185.61 ▲0.0781.23 ▼13.7543.88 ▲4.95
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0537.73 ▲2.2835.32 ▼0.33
Add New Post /wp-admin/post-new.php1,526 ▼023.24 ▲0.05649.38 ▼39.0751.60 ▼8.65
Media Library /wp-admin/upload.php1,400 ▲34.22 ▼0.0297.20 ▼11.9540.58 ▼7.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 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/iframe-killer/iframekiller.php:29

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: clickjacking, framebreaker, framekiller

iframe-killer/iframekiller.php 92% from 13 tests

"iframe Killer" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("iframe-killer.php" instead of "iframekiller.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin40 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1101235
JavaScript1005

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.13
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected