84% dynamic-iframe-for-wp

Code Review | Dynamic Iframe for Gutenberg

WordPress plugin Dynamic Iframe for Gutenberg scored84%from 54 tests.

About plugin

  • Plugin page: dynamic-iframe-fo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 22, 2023
  • Latest release: Sep 22, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: biggidroid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /33 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Dynamic Iframe for Gutenberg
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.56 ▲3.09
Dashboard /wp-admin3.31 ▲0.0145.72 ▲1.34
Posts /wp-admin/edit.php3.37 ▲0.0145.58 ▲0.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.82 ▼12.55
Media Library /wp-admin/upload.php3.24 ▲0.0137.26 ▲2.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Dynamic Iframe for Gutenberg
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.35 ▲0.091.67 ▼0.0542.01 ▼1.25
Dashboard /wp-admin2,195 ▲215.65 ▲0.0085.55 ▼11.1838.07 ▼2.12
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0836.79 ▲0.3931.84 ▼0.64
Add New Post /wp-admin/post-new.php6,366 ▲4,82927.72 ▲4.46894.35 ▲235.1865.41 ▲11.91
Media Library /wp-admin/upload.php1,400 ▲34.15 ▼0.1494.38 ▼7.0442.46 ▼1.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/dynamic-iframe-for-wp/dynamic-iframe-for-wp.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in dynamic-iframe-for-wp/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

dynamic-iframe-for-wp/dynamic-iframe-for-wp.php Passed 13 tests

"Dynamic Iframe for Gutenberg" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
44 characters long description:
Easily insert iframes into the block editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin54 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2121537
Markdown18015
CSS2101
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected