Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▲4.68ms] Passed 4 tests
Server-side resources used by Advanced iFrame
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 47.76 ▲5.62 |
Dashboard /wp-admin | 3.78 ▲0.47 | 57.01 ▲12.74 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 57.35 ▲7.21 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 95.28 ▼1.00 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 39.43 ▲6.87 |
Server storage [IO: ▲1.94MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 106 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
advancediFrameAdminOptions |
widget_recent-comments |
Browser metrics Passed 4 tests
Advanced iFrame: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲132 | 13.78 ▼0.40 | 9.39 ▲7.61 | 37.31 ▼8.43 |
Dashboard /wp-admin | 2,200 ▲23 | 5.63 ▼0.02 | 93.79 ▼2.09 | 77.88 ▲36.22 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.01 ▲0.02 | 39.46 ▼3.94 | 35.08 ▼1.42 |
Add New Post /wp-admin/post-new.php | 6,385 ▲4,859 | 27.68 ▲4.49 | 866.14 ▲241.39 | 35.58 ▼13.68 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.20 ▲0.05 | 97.02 ▼8.24 | 71.47 ▲29.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- advancediFrameAdminOptions
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 29× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/advanced-iframe/includes/advanced-iframe-main-iframe.php
- > /wp-content/plugins/advanced-iframe/includes/advanced-iframe-admin-support.php
- > /wp-content/plugins/advanced-iframe/includes/advanced-iframe-admin-faq.php
- > /wp-content/plugins/advanced-iframe/includes/advanced-iframe-admin-include-directly.php
- > /wp-content/plugins/advanced-iframe/includes/advanced-iframe-main-prepare.php
- > /wp-content/plugins/advanced-iframe/includes/advanced-iframe-admin-help-post.php
- > /wp-content/plugins/advanced-iframe/includes/advanced-iframe-admin-browser.php
- > /wp-content/plugins/advanced-iframe/includes/advanced-iframe-admin-advanced.php
- > /wp-content/plugins/advanced-iframe/includes/advanced-iframe-admin-forum.php
- > /wp-content/plugins/advanced-iframe/includes/advanced-iframe-admin-find-id.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/advanced-iframe/advanced-iframe.php:25
- > PHP Notice
Undefined variable: html in wp-content/plugins/advanced-iframe/includes/advanced-iframe-main-read-config.php on line 6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-iframe/includes/advanced-iframe-main-read-config.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Comparison between normal iframe and advanced iframe wrapper. The red areas are modified by the advanced iframe to display the content better.), #2 (This image shows the difference with an url forward parameter. In the advanced iframe a sub album is shown while the normal iframe still shows the entry screen.), #3 (The basic admin screen to enable standard settings), #4 (The advanced admin screen to enable advanced settings like html and css changes), #5 (The advanced admin screen to enable Javascript scroll to top and autoresize resize)
advanced-iframe/advanced-iframe.php Passed 13 tests
The principal PHP file in "Advanced iFrame" v. 2023.9 is loaded by WordPress automatically on each request
99 characters long description:
This plugin includes any webpage as shortcode in an advanced iframe or embeds the content directly.
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 plugin15,962 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 944 | 505 | 7,854 |
PO File | 1 | 678 | 739 | 4,201 |
JavaScript | 10 | 451 | 417 | 2,641 |
CSS | 6 | 136 | 20 | 909 |
HTML | 10 | 17 | 3 | 357 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 108.75 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 235.00 |
Average method complexity | 5.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 45 | 45.92% |
▷ Public methods | 98 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 65 | |
▷ Named functions | 64 | 98.46% |
▷ Anonymous functions | 1 | 1.54% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
21 PNG files occupy 0.60MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/how-to-find-id.png | 38.21KB | 41.35KB | 0.00% |
img/fullscreen_close-white.png | 0.29KB | 0.24KB | ▼ 16.61% |
img/filesave.png | 0.44KB | 0.44KB | 0.00% |
screenshot-3.png | 43.63KB | 25.76KB | ▼ 40.95% |
img/fullscreen_close.png | 0.37KB | 0.21KB | ▼ 43.34% |