Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼1.19ms] 75% from 4 tests
A check of server-side resources used by Docus - YouTube Video Playlist
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,414.71ms on /wp-admin/admin.php?page=docus-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 43.17 ▼1.56 |
Dashboard /wp-admin | 3.50 ▲0.20 | 50.16 ▼4.71 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 51.05 ▲1.15 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 95.01 ▲0.35 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.55 ▲3.37 |
Docus /wp-admin/admin.php?page=docus-setting-page | 3.41 | 35.54 |
Recommendations /wp-admin/admin.php?page=docus-recommendations | 7.80 | 1,414.71 |
Server storage [IO: ▲0.59MB] [DB: ▲0.67MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
page_layout_style |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Docus - YouTube Video Playlist
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 14.13 ▼0.02 | 2.23 ▲0.18 | 43.84 ▼0.10 |
Dashboard /wp-admin | 2,220 ▲40 | 5.56 ▼0.03 | 84.01 ▼8.15 | 77.10 ▲35.11 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.01 ▼0.02 | 38.30 ▲1.42 | 35.27 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 22.83 ▼0.07 | 665.60 ▲14.34 | 50.61 ▼4.19 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.23 ▲0.01 | 99.27 ▲1.01 | 78.73 ▲30.72 |
Docus /wp-admin/admin.php?page=docus-setting-page | 1,089 | 2.08 | 25.06 | 31.32 |
Recommendations /wp-admin/admin.php?page=docus-recommendations | 2,878 | 2.23 | 32.72 | 45.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 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 7 options in the database
- theysaidso_admin_options
- page_layout_style
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=docus-recommendations
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% 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 take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/docus/admin/template/shortcode-info.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/docus/includes/class.docus.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/docus/admin/template/general-setting.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/docus/includes/class.shortcode.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please a description for screenshot #4 in docus/assets to your readme.txt
docus/docus.php Passed 13 tests
The main file in "Docus - YouTube Video Playlist" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
58 characters long description:
Show youtube Video palylist onto any page of your wibsite.
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
Success! There were no dangerous files found in this plugin2,936 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 241 | 194 | 1,088 |
CSS | 4 | 141 | 27 | 944 |
PHP | 7 | 160 | 139 | 904 |
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.30 |
Average class complexity | 15.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 4 | 14.29% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
20 PNG files occupy 0.13MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) admin/assets/images/extensions/ht-click-to-call.png | 1.70KB | 0.00KB | ▼ 100.00% |
(invalid) admin/assets/images/extensions/docus-pro.png | 3.98KB | 0.00KB | ▼ 100.00% |
admin/assets/images/playlist-3.png | 1.41KB | 0.75KB | ▼ 47.05% |
(invalid) admin/assets/images/extensions/was-this-helpful.png | 1.21KB | 0.00KB | ▼ 100.00% |
(invalid) admin/assets/images/extensions/cf7-extensions-pro.png | 8.57KB | 0.00KB | ▼ 100.00% |