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
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.51ms] Passed 4 tests
This is a short check of server-side resources used by YouTube Dev Facile
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.74 ▼0.56 |
Dashboard /wp-admin | 3.39 ▲0.08 | 50.08 ▲0.33 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 45.61 ▲1.60 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.48 ▼23.40 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.96 ▲4.65 |
Server storage [IO: ▲5.97MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 145 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for YouTube Dev Facile
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.21 ▼1.00 | 1.71 ▼0.24 | 43.75 ▲0.19 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼0.06 | 97.85 ▼17.68 | 37.54 ▼8.16 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.14 ▲0.12 | 35.97 ▼1.72 | 34.91 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.28 ▲0.14 | 598.56 ▼68.88 | 54.32 ▼4.02 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▼0.04 | 94.97 ▼3.98 | 40.84 ▼4.46 |
YouTube DevFacile /wp-admin/api-YT-devfacile.php | 26 | 0.44 | 0.14 | 15.00 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/youtube-dev-facile/languages/strings.php
- > /wp-content/plugins/youtube-dev-facile/youtube-devfacile.php
- 78× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/youtube-dev-facile/google-api-client/Service/QPXExpress.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/youtube-dev-facile/google-api-client/Service/Plus.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/youtube-dev-facile/google-api-client/Service/Pagespeedonline.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/youtube-dev-facile/google-api-client/Service/Manager.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/youtube-dev-facile/google-api-client/Service/Replicapoolupdater.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/youtube-dev-facile/google-api-client/Service/AndroidEnterprise.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/youtube-dev-facile/google-api-client/Service/GamesConfiguration.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/youtube-dev-facile/google-api-client/Service/SiteVerification.php:31
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/youtube-dev-facile/google-api-client/../autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/youtube-dev-facile/google-api-client/Collection.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/youtube-dev-facile/google-api-client/Service/Gmail.php:31
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/api-YT-devfacile.php
- > Network (severe)
wp-admin/api-YT-devfacile.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Administration du plugin YouTube Dev Facile.), #2 (Affiche le nombre de vidéos de la chaîne YouTube et le nombre de vues dans un Widget.), #3 (Résultat de l'affichage dans un Widget.)
youtube-dev-facile/youtube-devfacile.php 77% from 13 tests
The main file in "YouTube Dev Facile" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 533 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("youtube-dev-facile.php" instead of "youtube-devfacile.php")
- Text Domain: Please use dashes and lowercase characters for text domains
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
There were no executable files found in this plugin166,322 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 130 | 10,841 | 31,876 | 166,220 |
PO File | 2 | 20 | 40 | 102 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.01 |
Average class complexity | 1.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 1.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 3,026 | |
▷ Abstract classes | 6 | 0.20% |
▷ Concrete classes | 3,020 | 99.80% |
▷ Final classes | 0 | 0.00% |
Methods | 23,619 | |
▷ Static methods | 15 | 0.06% |
▷ Public methods | 23,552 | 99.72% |
▷ Protected methods | 30 | 0.13% |
▷ Private methods | 37 | 0.16% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 249 | |
▷ Global constants | 5 | 2.01% |
▷ Class constants | 244 | 97.99% |
▷ Public constants | 244 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.30MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 50.43KB | 17.82KB | ▼ 64.66% |
assets/icon-256x256.png | 31.06KB | 14.30KB | ▼ 53.96% |
assets/icon-128x128.png | 14.01KB | 6.80KB | ▼ 51.43% |
assets/banner-772x250.png | 24.08KB | 10.90KB | ▼ 54.72% |
screenshot-2.png | 32.89KB | 10.67KB | ▼ 67.56% |