73% ultraembed-advanced-iframe

Code Review | UltraEmbed - Advanced Iframe Plugin For WordPress with Gutenberg Block Included

WordPress plugin UltraEmbed - Advanced Iframe Plugin For WordPress with Gutenberg Block Included scored73%from 54 tests.

About plugin

  • Plugin page: ultraembed-advanc...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Sep 18, 2020
  • Latest release: Sep 2, 2023
  • Number of updates: 11
  • Update frequency: every 98.3 days
  • Top authors: ultradevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,329 total downloads

Benchmarks

Plugin footprint 65% 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: ▲5.06MB] [CPU: ▲26.83ms] 75% from 4 tests

This is a short check of server-side resources used by UltraEmbed - Advanced Iframe Plugin For WordPress with Gutenberg Block Included
Please have a look at the following items
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.06MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.95 ▲5.4869.36 ▲28.86
Dashboard /wp-admin8.97 ▲5.6676.71 ▲26.89
Posts /wp-admin/edit.php8.97 ▲5.6185.16 ▲35.78
Add New Post /wp-admin/post-new.php9.38 ▲3.49113.15 ▲17.09
Media Library /wp-admin/upload.php8.97 ▲5.7372.78 ▲34.47
Freemius Debug [v.2.5.11] /wp-admin/admin.php?page=freemius8.9765.35

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 214 new files
Database: no new tables, 11 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
fs_active_plugins
widget_recent-comments
fs_accounts
fs_debug_mode
db_upgraded
can_compress_scripts
ultra_embed_installed_time
...

Browser metrics Passed 4 tests

UltraEmbed - Advanced Iframe Plugin For WordPress with Gutenberg Block Included: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17113.32 ▼1.278.14 ▲6.5535.19 ▼7.69
Dashboard /wp-admin2,229 ▲525.61 ▼0.1191.80 ▼3.0040.02 ▼1.96
Posts /wp-admin/edit.php2,132 ▲321.99 ▼0.0338.50 ▲1.1534.46 ▼1.06
Add New Post /wp-admin/post-new.php1,715 ▲18922.17 ▲4.55627.83 ▼41.1430.82 ▼26.09
Media Library /wp-admin/upload.php1,431 ▲284.24 ▼0.02101.81 ▼1.7047.39 ▲0.98
Freemius Debug [v.2.5.11] /wp-admin/admin.php?page=freemius1,0991.6926.1428.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/ultraembed-advanced-iframe/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 11 options
    • fs_active_plugins
    • theysaidso_admin_options
    • ultra_embed_installed_time
    • widget_recent-comments
    • ultra_embed_version
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • fs_accounts
    • fs_debug_mode
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ultraembed-advanced-iframe/ultraEmbed.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)
Everything seems fine on the user side

Optimizations

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
6 plugin tags: iframe for all user, iframe block, iframe for logged user, embed iframe by shortcode, iframe...

ultraembed-advanced-iframe/ultraEmbed.php 92% from 13 tests

The main file in "UltraEmbed - Advanced Iframe Plugin For WordPress with Gutenberg Block Included" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("ultraembed-advanced-iframe.php" instead of "ultraEmbed.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin34,488 lines of code in 163 files:
LanguageFilesBlank linesComment linesLines of code
PHP1388,19717,89033,992
Markdown1680214
JavaScript53460197
CSS165044
JSON20025
XML13016

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,087)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity78.15
▷ Minimum class complexity1.00
▷ Maximum class complexity3,087.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes59
▷ Abstract classes23.39%
▷ Concrete classes5796.61%
▷ Final classes11.75%
Methods1,329
▷ Static methods22516.93%
▷ Public methods93770.50%
▷ Protected methods171.28%
▷ Private methods37528.22%
Functions103
▷ Named functions10299.03%
▷ Anonymous functions10.97%
Constants151
▷ Global constants10468.87%
▷ Class constants4731.13%
▷ Public constants47100.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
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/block.png12.99KB3.85KB▼ 70.34%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/ultraembed-advanced-iframe.png6.77KB2.20KB▼ 67.51%