84% iframe-plus-get-parameters

Code Review | Iframe plus GET Parameters

WordPress plugin Iframe plus GET Parameters scored84%from 54 tests.

About plugin

  • Plugin page: iframe-plus-get-p...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.12-6.2
  • WordPress version: 6.3.1
  • First release: Nov 17, 2022
  • Latest release: Apr 27, 2023
  • Number of updates: 31
  • Update frequency: every 5.2 days
  • Top authors: tronusa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /243 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Iframe plus GET Parameters
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.26 ▼2.97
Dashboard /wp-admin3.33 ▼0.0250.21 ▼24.22
Posts /wp-admin/edit.php3.38 ▲0.0250.44 ▼1.72
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.67 ▼5.10
Media Library /wp-admin/upload.php3.25 ▲0.0241.71 ▲5.53

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Iframe plus GET Parameters
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲12613.78 ▼0.579.47 ▲7.6843.96 ▲0.10
Dashboard /wp-admin2,197 ▲295.63 ▼0.0285.87 ▼10.0642.95 ▼0.55
Posts /wp-admin/edit.php2,102 ▲21.99 ▼0.0138.80 ▲2.3639.98 ▲1.74
Add New Post /wp-admin/post-new.php1,528 ▲222.94 ▼0.18679.73 ▲48.3157.68 ▲5.95
Media Library /wp-admin/upload.php1,402 ▲84.12 ▼0.04114.91 ▲3.5246.94 ▼1.04

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/iframe-plus-get-parameters/row_meta.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iframe-plus-get-parameters/wp_enqueue_scripts.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/iframe-plus-get-parameters/row_meta.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #3 (screenshot-3.png) image missing
Please take inspiration from this readme.txt

iframe-plus-get-parameters/_.iframex.php 92% from 13 tests

The main file in "Iframe plus GET Parameters" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("iframe-plus-get-parameters.php" instead of "_.iframex.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
There were no executable files found in this plugin146 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP52039123
HTML11012
JavaScript13711

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screenshot-1.png37.83KB14.28KB▼ 62.25%
images/icon-128x128.png7.13KB3.53KB▼ 50.41%
images/screenshot-2.png138.64KB45.88KB▼ 66.91%