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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲0.55ms] Passed 4 tests
This is a short check of server-side resources used by Connatix Video Embed
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 48.98 ▲7.67 |
Dashboard /wp-admin | 3.35 ▲0.05 | 47.59 ▼1.25 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 56.20 ▲7.59 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 95.67 ▼4.02 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.99 ▼0.12 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Connatix Video Embed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,586 ▲825 | 45.01 ▲30.64 | 136.82 ▲134.97 | 42.96 ▼0.61 |
Dashboard /wp-admin | 2,440 ▲263 | 31.45 ▲25.80 | 593.68 ▲503.47 | 78.75 ▲38.28 |
Posts /wp-admin/edit.php | 2,364 ▲261 | 30.30 ▲28.35 | 424.44 ▲384.35 | 44.34 ▲10.76 |
Add New Post /wp-admin/post-new.php | 2,603 ▲1,077 | 36.44 ▲13.47 | 1,387.96 ▲735.98 | 56.38 ▲4.02 |
Media Library /wp-admin/upload.php | 1,655 ▲255 | 29.50 ▲25.24 | 499.61 ▲398.86 | 56.15 ▲15.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/connatix-video-embed/partials/head_script_site.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/connatix-video-embed/connatix-video-embed.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/connatix-video-embed/partials/edit_user_fields.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function register_block_type() in wp-content/plugins/connatix-video-embed/blocks/video-embed/video-embed.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/connatix-video-embed/partials/modal.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/connatix-video-embed/partials/head_script_admin.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
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
1 plugin tags: video
connatix-video-embed/connatix-video-embed.php 92% from 13 tests
Analyzing the main PHP file in "Connatix Video Embed" version 1.0.3
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 238 characters long)
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
Good job! No executable or dangerous file extensions detected31,187 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 30,553 |
JavaScript | 7 | 167 | 47 | 401 |
PHP | 7 | 85 | 18 | 200 |
CSS | 2 | 7 | 0 | 33 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 3 | 27.27% |
▷ Anonymous functions | 8 | 72.73% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin