90% iframe

Code Review | iframe

WordPress plugin iframe scored90%from 54 tests.

About plugin

  • Plugin page: iframe
  • Plugin version: 4.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 28, 2011
  • Latest release: Nov 18, 2023
  • Number of updates: 110
  • Update frequency: every 41.7 days
  • Top authors: webvitaly (100%)

Code review

54 tests

User reviews

55 reviews

Install metrics

100,000+ active /1,521,281 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by iframe
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.54 ▲0.18
Dashboard /wp-admin3.32 ▲0.0144.06 ▼7.39
Posts /wp-admin/edit.php3.37 ▲0.0148.38 ▲5.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.03 ▲0.07
Media Library /wp-admin/upload.php3.24 ▲0.0134.95 ▲1.83

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for iframe
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.21 ▼0.491.81 ▼0.0138.14 ▼6.20
Dashboard /wp-admin2,195 ▲215.66 ▲0.0190.11 ▼10.3939.67 ▼4.99
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.1739.89 ▲4.0435.49 ▲1.06
Add New Post /wp-admin/post-new.php1,526 ▼022.98 ▼0.21617.00 ▼79.8655.94 ▲2.74
Media Library /wp-admin/upload.php1,394 ▼94.24 ▲0.05101.25 ▲0.7742.45 ▲0.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 ([iframe] shortcode) image required
You can take inspiration from this readme.txt

iframe/iframe.php Passed 13 tests

The main file in "iframe" v. 4.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
91 characters long description:
[iframe src="http://www.youtube.com/embed/dUpTjDqjQoo" width="100%" height="500"] shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101082

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png16.82KB17.20KB0.00%