78% iframely

Code Review | Iframely – WP media embeds, cards and blocks

WordPress plugin Iframely – WP media embeds, cards and blocks scored78%from 54 tests.

About plugin

  • Plugin page: iframely
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Oct 3, 2013
  • Latest release: May 10, 2023
  • Number of updates: 34
  • Update frequency: every 103.1 days
  • Top authors: ivanp (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active /105,269 total downloads

Benchmarks

Plugin footprint 83% 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 gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.28ms] Passed 4 tests

This is a short check of server-side resources used by Iframely – WP media embeds, cards and blocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1146.18 ▼0.17
Dashboard /wp-admin3.41 ▲0.0752.06 ▼17.12
Posts /wp-admin/edit.php3.52 ▲0.1654.02 ▲4.00
Add New Post /wp-admin/post-new.php5.99 ▲0.10100.04 ▼4.63
Media Library /wp-admin/upload.php3.33 ▲0.1040.27 ▲0.80
Iframely /wp-admin/options-general.php?page=iframely3.3335.90

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 12 new options
New WordPress options
iframely_previews_enhance
widget_theysaidso_widget
iframely_cache_ttl
iframely_version
theysaidso_admin_options
iframely_cache_refresh
db_upgraded
iframely_builtins_replace
can_compress_scripts
iframely_all_set
...

Browser metrics Passed 4 tests

Checking browser requirements for Iframely – WP media embeds, cards and blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲2314.73 ▲0.501.67 ▼0.3444.38 ▲2.85
Dashboard /wp-admin2,218 ▲415.64 ▼0.0191.46 ▼0.1838.39 ▼5.24
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0538.33 ▲3.0035.08 ▼2.08
Add New Post /wp-admin/post-new.php1,531 ▼423.11 ▲4.98684.51 ▲34.3452.72 ▼3.39
Media Library /wp-admin/upload.php1,398 ▲14.16 ▼0.0495.57 ▼11.8143.97 ▼0.38
Iframely /wp-admin/options-general.php?page=iframely9401.9626.5231.02

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
The following items require your attention
  • The uninstall procedure has failed, leaving 12 options in the database
    • widget_recent-posts
    • iframely_version
    • iframely_all_set
    • iframely_cache_refresh
    • theysaidso_admin_options
    • iframely_builtins_replace
    • iframely_previews_enhance
    • widget_recent-comments
    • iframely_cache_ttl
    • db_upgraded
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/iframely/views/partials/notice.php
    • > /wp-content/plugins/iframely/trunk/views/partials/notice.php
  • 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: message in wp-content/plugins/iframely/trunk/views/partials/notice.php on line 2
    • > PHP Notice
      Undefined variable: message in wp-content/plugins/iframely/views/partials/notice.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/iframely/trunk/views/settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/iframely/trunk/views/partials/onboarding.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/iframely/views/tabs/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/iframely/views/settings.php:7
    • > PHP Notice
      Undefined variable: dismissible in wp-content/plugins/iframely/views/partials/notice.php on line 1
    • > PHP Notice
      Undefined variable: status in wp-content/plugins/iframely/views/partials/notice.php on line 1
    • > PHP Notice
      Undefined variable: dismissible in wp-content/plugins/iframely/trunk/views/partials/notice.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/iframely/views/partials/onboarding.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
7 plugin tags: instagram, twitch, tiktok, twitter, gutenberg...

iframely/iframely.php 85% from 13 tests

The main PHP file in "Iframely – WP media embeds, cards and blocks" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.2" instead of "7.4")
  • Requires at least: Required version does not match the one declared in readme.txt ("3.8" instead of "5.8")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,185 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP29236601,183
CSS1001
JavaScript1001

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.26
Average class complexity6.25
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes32
▷ Abstract classes00.00%
▷ Concrete classes32100.00%
▷ Final classes00.00%
Methods180
▷ Static methods17295.56%
▷ Public methods180100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants16
▷ Global constants1062.50%
▷ Class constants637.50%
▷ Public constants6100.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 compressed PNG files occupy 0.34MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/onboarding@2x.png128.47KB138.28KB0.00%
trunk/assets/onboarding.png46.18KB48.89KB0.00%
trunk/assets/onboarding@2x.png128.47KB138.28KB0.00%
assets/onboarding.png46.18KB48.89KB0.00%