89% lightning-flow-iframe

Code Review | Lightning Flow iFrame

WordPress plugin Lightning Flow iFrame scored89%from 54 tests.

About plugin

  • Plugin page: lightning-flow-if...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 18, 2023
  • Latest release: Jan 24, 2023
  • Number of updates: 14
  • Update frequency: every 0.5 days
  • Top authors: jasonbest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /414 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.93ms] Passed 4 tests

Server-side resources used by Lightning Flow iFrame
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.09 ▼2.44
Dashboard /wp-admin3.31 ▲0.0057.90 ▼0.91
Posts /wp-admin/edit.php3.36 ▲0.0049.47 ▼2.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.92 ▼1.85
Media Library /wp-admin/upload.php3.23 ▲0.0038.09 ▲4.30

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

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

Browser metrics Passed 4 tests

Lightning Flow iFrame: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.021.63 ▼0.6442.07 ▼1.50
Dashboard /wp-admin2,192 ▲125.67 ▲0.04109.32 ▲14.7436.58 ▼6.38
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0534.35 ▼3.7833.85 ▼2.46
Add New Post /wp-admin/post-new.php1,526 ▼223.23 ▼0.30593.73 ▼62.4450.17 ▼4.81
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.05102.91 ▲2.1844.15 ▲2.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: salesforce, iframe

lightning-flow-iframe/lightning-flow-iframe.php 77% from 13 tests

The entry point to "Lightning Flow iFrame" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Description: Keep the plugin description shorter than 140 characters (currently 383 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin51 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP292648
JavaScript32153

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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 functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin