84% simple-iframe

Code Review | Simple Iframe

WordPress plugin Simple Iframe scored84%from 54 tests.

About plugin

  • Plugin page: simple-iframe
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Jul 29, 2019
  • Latest release: Jun 14, 2023
  • Number of updates: 19
  • Update frequency: every 74.6 days
  • Top authors: unapersona (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

5,000+ active /59,790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Simple Iframe
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.46 ▲1.32
Dashboard /wp-admin3.32 ▲0.0149.59 ▼3.72
Posts /wp-admin/edit.php3.37 ▲0.0153.20 ▲0.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.41 ▼16.74
Media Library /wp-admin/upload.php3.24 ▲0.0135.73 ▲0.72

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Simple Iframe
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.001.63 ▼0.1240.47 ▼4.03
Dashboard /wp-admin2,192 ▲155.51 ▼0.1486.88 ▼0.4539.09 ▲0.17
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0338.80 ▲2.6135.36 ▼0.45
Add New Post /wp-admin/post-new.php6,364 ▲4,83827.64 ▲4.35933.01 ▲249.1861.14 ▲9.19
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.03103.96 ▼2.2048.27 ▲3.84

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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)
Even though everything seems fine, this is not 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-iframe/simple-iframe.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in simple-iframe/assets to your readme.txt
The official readme.txt is a good inspiration

simple-iframe/simple-iframe.php Passed 13 tests

The main file in "Simple Iframe" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
44 characters long description:
Easily insert iframes into the block editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected130 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File1233162
JSON40053
PHP221013
CSS1001
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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 functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin