Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.80MB] [CPU: ▼33.55ms] Passed 4 tests
Analyzing server-side resources used by YouTube SimpleGallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 43.15 ▲0.20 |
Dashboard /wp-admin | 3.14 ▼0.16 | 28.37 ▼29.47 |
Posts /wp-admin/edit.php | 3.14 ▼0.21 | 27.60 ▼20.34 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.74 | 28.42 ▼69.29 |
Media Library /wp-admin/upload.php | 3.14 ▼0.08 | 24.08 ▼15.10 |
YouTube SimpleGallery /wp-admin/options-general.php?page=youtube-gallery-options | 3.14 | 28.42 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
youtube_gallery_option |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for YouTube SimpleGallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.39 ▲0.23 | 2.05 ▼0.06 | 42.98 ▲0.99 |
Dashboard /wp-admin | 2,216 ▲39 | 5.70 ▲0.03 | 85.09 ▼4.97 | 40.13 ▲0.19 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.06 ▲0.09 | 37.24 ▼1.88 | 39.53 ▲2.70 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.70 ▲0.73 | 610.57 ▼86.02 | 73.14 ▲6.33 |
Media Library /wp-admin/upload.php | 1,415 ▲21 | 4.33 ▲0.11 | 100.56 ▲0.09 | 42.82 ▼4.87 |
YouTube SimpleGallery /wp-admin/options-general.php?page=youtube-gallery-options | 1,121 | 1.80 | 25.15 | 38.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=youtube-gallery-options
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=youtube-gallery-options
- > Notice in wp-content/plugins/youtube-simplegallery/inc/options.php+234
Undefined index: timthumb
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/youtube-simplegallery/youtube_simplegallery.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-simplegallery/inc/options.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/youtube-simplegallery/inc/shortcode.php:276
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-simplegallery/inc/admin-widgets.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-simplegallery/inc/notices.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Settings let's you set width and height of embedded video, chose if Thickbox or Shadowbox should be used (note: width and height is only necessary if Thickbox or Shadowbox is active), and use included CSS.), #2 (The gallery will show on your page like this), #3 (If Thickbox or Shadowbox is active, the embedded video will show in a box on your site)
youtube-simplegallery/youtube_simplegallery.php 85% from 13 tests
The main file in "YouTube SimpleGallery" v. 2.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("youtube-simplegallery.php" instead of "youtube_simplegallery.php")
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,230 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 306 | 187 | 2,115 |
CSS | 2 | 19 | 1 | 107 |
JavaScript | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 205.00 |
▷ Minimum class complexity | 205.00 |
▷ Maximum class complexity | 205.00 |
Average method complexity | 6.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.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 | 35 | |
▷ Static methods | 3 | 8.57% |
▷ Public methods | 5 | 14.29% |
▷ Protected methods | 30 | 85.71% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 46 | |
▷ Global constants | 46 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.22MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 59.10KB | 58.01KB | ▼ 1.86% |
screenshot-1.png | 32.15KB | 31.51KB | ▼ 1.99% |
screenshot-3.png | 109.07KB | 107.73KB | ▼ 1.23% |
img/play.png | 21.97KB | 9.23KB | ▼ 58.00% |