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.18MB] [CPU: ▼14.32ms] Passed 4 tests
A check of server-side resources used by Press Tube
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.80 ▼2.71 |
Dashboard /wp-admin | 3.16 ▼0.14 | 30.03 ▼20.64 |
Posts /wp-admin/edit.php | 3.24 ▼0.12 | 35.96 ▼11.68 |
Add New Post /wp-admin/post-new.php | 5.48 ▼0.41 | 78.13 ▼20.25 |
Media Library /wp-admin/upload.php | 3.18 ▼0.05 | 30.45 ▼4.71 |
Press Tube /wp-admin/options-general.php?page=press-tube | 3.15 | 30.00 |
Server storage [IO: ▲0.32MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Press Tube
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲165 | 14.29 ▼0.12 | 13.69 ▲11.95 | 40.99 ▼3.12 |
Dashboard /wp-admin | 2,215 ▲38 | 5.78 ▲0.09 | 95.30 ▲3.61 | 38.68 ▼1.91 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.30 ▲0.32 | 42.45 ▲5.91 | 35.67 ▲2.42 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.70 ▲0.47 | 685.85 ▲71.70 | 36.18 ▼11.63 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.51 ▲0.31 | 103.87 ▲2.50 | 43.05 ▲1.36 |
Press Tube /wp-admin/options-general.php?page=press-tube | 1,490 | 9.29 | 324.00 | 76.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
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
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=press-tube
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
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
- 21× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/press-tube/press-tube.php
- > /wp-content/plugins/press-tube/include/class-main.php
- > /wp-content/plugins/press-tube/views/settings-page.php
- > /wp-content/plugins/press-tube/include/class-yt-client.php
- > /wp-content/plugins/press-tube/include/shortcodes/playlist.php
- > /wp-content/plugins/press-tube/include/settings/class-option-channel-details.php
- > /wp-content/plugins/press-tube/include/class-utils.php
- > /wp-content/plugins/press-tube/include/settings/class-option-main.php
- > /wp-content/plugins/press-tube/include/shortcodes/subscribe.php
- > /wp-content/plugins/press-tube/views/settings-dashboard.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: video, share, playlist, youtube, embed...
press-tube/press-tube.php Passed 13 tests
The principal PHP file in "Press Tube" v. 0.0.3 is loaded by WordPress automatically on each request
85 characters long description:
The easiest way to integrate YouTube in your WordPress site, with many functionality.
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
Good job! No executable or dangerous file extensions detected2,437 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 764 | 751 | 1,591 |
JavaScript | 8 | 248 | 282 | 624 |
PO File | 1 | 79 | 82 | 205 |
SVG | 3 | 0 | 0 | 14 |
CSS | 3 | 0 | 3 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 23 | 20.72% |
▷ Public methods | 95 | 85.59% |
▷ Protected methods | 6 | 5.41% |
▷ Private methods | 10 | 9.01% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/img/banner.png | 17.92KB | 9.63KB | ▼ 46.24% |