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.01MB] [CPU: ▼0.81ms] Passed 4 tests
Server-side resources used by Video Popup for Elementor - WPTD
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.45 ▼4.93 |
Dashboard /wp-admin | 3.32 ▲0.01 | 56.73 ▲7.11 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.21 ▲0.72 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.82 ▲1.92 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.18 ▼0.94 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Video Popup for Elementor - WPTD
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.66 ▼0.74 | 1.71 ▼0.05 | 41.62 ▼3.49 |
Dashboard /wp-admin | 2,235 ▲44 | 4.87 ▼1.02 | 110.02 ▼4.45 | 44.44 ▼1.85 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.03 ▲0.02 | 41.07 ▲1.68 | 34.64 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,553 ▲34 | 23.65 ▲0.40 | 674.22 ▲17.01 | 52.00 ▼8.73 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.18 ▼0.01 | 93.88 ▼16.56 | 44.85 ▼1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Plugin' not found in wp-content/plugins/wptd-video-popup/inc/class.video-popup.php:51
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wptd-video-popup/widgets/video-popup-elementor.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wptd-video-popup/admin/admin-page.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wptd-video-popup/inc/class.elementor.settings.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptd-video-popup/widgets/video-popup-wp-shortcodes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptd-video-popup/admin/wptd-settings.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
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: youtube lightbox, lightbox, popup video, video lightbox, vimeo lightbox...
wptd-video-popup/wptd-video-popup.php 92% from 13 tests
The main file in "Video Popup for Elementor - WPTD" v. 1.5.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 157 characters long)
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
Everything looks great! No dangerous files found in this plugin1,863 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 153 | 308 | 1,557 |
CSS | 3 | 7 | 14 | 184 |
JavaScript | 2 | 13 | 12 | 122 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 2 | 33.33% |
Methods | 41 | |
▷ Static methods | 7 | 17.07% |
▷ Public methods | 38 | 92.68% |
▷ Protected methods | 3 | 7.32% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 10.47KB | 4.76KB | ▼ 54.57% |