89% pass-url-parameters-to-embeded-iframe

Code Review | Pass URL Parameters to Embedded iFrame

WordPress plugin Pass URL Parameters to Embedded iFrame scored89%from 54 tests.

About plugin

  • Plugin page: pass-url-paramete...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2019
  • Latest release: Aug 25, 2022
  • Number of updates: 7
  • Update frequency: every 186.9 days
  • Top authors: stevejonesdev (71.43%)roadwarriorwp (42.86%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,250 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Pass URL Parameters to Embedded iFrame
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.36 ▼9.73
Dashboard /wp-admin3.31 ▲0.0148.42 ▲0.06
Posts /wp-admin/edit.php3.36 ▲0.0049.50 ▲1.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.25 ▼6.50
Media Library /wp-admin/upload.php3.23 ▲0.0031.72 ▼5.19

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Pass URL Parameters to Embedded iFrame
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲17113.64 ▼0.735.55 ▲3.7440.97 ▼5.95
Dashboard /wp-admin2,209 ▲215.86 ▲0.79106.33 ▼2.3439.72 ▼3.39
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0139.69 ▲1.1535.05 ▲3.12
Add New Post /wp-admin/post-new.php1,537 ▲1823.09 ▲0.02592.28 ▼75.1451.17 ▲1.76
Media Library /wp-admin/upload.php1,382 ▲34.30 ▲0.0898.22 ▲0.8141.73 ▼3.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: iframe, parameters, eventbrite

pass-url-parameters-to-embeded-iframe/rwc-pass-parameters-iframe.php 77% from 13 tests

"Pass URL Parameters to Embedded iFrame" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("pass-url-parameters-to-embeded-iframe.php" instead of "rwc-pass-parameters-iframe.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected28 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11919
PHP17209

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin