90% automatic-break-iframes

Code Review | Automatic break iframes

WordPress plugin Automatic break iframes scored90%from 54 tests.

About plugin

  • Plugin page: automatic-break-i...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.4
  • WordPress version: 6.3.1
  • First release: Dec 1, 2014
  • Latest release: Apr 26, 2020
  • Number of updates: 45
  • Update frequency: every 43.8 days
  • Top authors: Alireza Nejati (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,525 total downloads


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: ▼0.02MB] [CPU: ▼10.48ms] Passed 4 tests

Analyzing server-side resources used by Automatic break iframes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0729.90 ▼13.34
Dashboard /wp-admin3.32 ▼0.0353.14 ▼11.57
Posts /wp-admin/edit.php3.37 ▲0.0148.46 ▼5.65
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.19 ▼11.37
Media Library /wp-admin/upload.php3.24 ▲0.0136.62 ▲0.28
break iframes /wp-admin/options-general.php?page=my-unique-identifier3.2035.77

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Automatic break iframes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.25 ▼0.411.94 ▼0.0247.99 ▲5.40
Dashboard /wp-admin2,199 ▲195.61 ▲0.0286.84 ▼3.4238.25 ▼7.01
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0532.40 ▼12.7636.31 ▲0.14
Add New Post /wp-admin/post-new.php1,529 ▲323.67 ▲0.61693.33 ▲19.7560.32 ▲2.23
Media Library /wp-admin/upload.php1,407 ▲44.21 ▲0.0196.87 ▼5.3244.70 ▼3.10
break iframes /wp-admin/options-general.php?page=my-unique-identifier7601.9927.2324.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: frame, iframecatcher, anti-coppy, wordpress, frame-breaker...

automatic-break-iframes/Automatic break iframes.php 92% from 13 tests

The primary PHP file in "Automatic break iframes" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("automatic-break-iframes.php" instead of "Automatic break iframes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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 images were found in this plugin