Benchmarks
Plugin footprint 65% 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.65MB] [CPU: ▼6.85ms] 75% from 4 tests
Analyzing server-side resources used by Yoo Slider - Image Slider & Video Slider
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 502.77ms on /wp-admin/admin.php?page=yooslider-templates)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.63 | 43.92 ▲5.60 |
Dashboard /wp-admin | 3.97 ▲0.62 | 49.76 ▼10.96 |
Posts /wp-admin/edit.php | 4.01 ▲0.65 | 45.10 ▼1.76 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 75.13 ▼20.28 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 41.29 ▲7.70 |
Templates /wp-admin/admin.php?page=yooslider-templates | 4.01 | 502.77 |
Sliders /wp-admin/admin.php?page=yooslider | 4.05 | 38.85 |
Server storage [IO: ▲2.48MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 142 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_gks_slides |
wp_gks_sliders |
New WordPress options |
---|
gks_banners_last_loaded_at |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
gks_banners_content |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Yoo Slider - Image Slider & Video Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,975 ▲229 | 13.92 ▼0.71 | 7.96 ▲6.40 | 41.21 ▼0.91 |
Dashboard /wp-admin | 2,265 ▲88 | 5.85 ▲0.19 | 82.99 ▼3.22 | 38.30 ▼3.84 |
Posts /wp-admin/edit.php | 2,172 ▲75 | 2.39 ▲0.41 | 36.06 ▲0.63 | 32.82 ▼2.34 |
Add New Post /wp-admin/post-new.php | 6,262 ▲4,736 | 19.19 ▼4.45 | 922.96 ▲230.01 | 36.93 ▼21.58 |
Media Library /wp-admin/upload.php | 1,467 ▲67 | 4.53 ▲0.23 | 98.48 ▼10.51 | 44.09 ▼2.18 |
Templates /wp-admin/admin.php?page=yooslider-templates | 1,620 | 5.06 | 78.16 | 184.68 |
Sliders /wp-admin/admin.php?page=yooslider | 1,494 | 5.12 | 54.63 | 87.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_gks_slides
- wp_gks_sliders
- Zombie WordPress options detected upon uninstall: 8 options
- gks_banners_last_loaded_at
- db_upgraded
- gks_banners_content
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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)
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/yoo-slider/views/admin/gks-admin-templates-btn.php
- > /wp-content/plugins/yoo-slider/views/admin/gks-admin-dialogs.php
- > /wp-content/plugins/yoo-slider/views/admin/gks-admin-slider.php
- > /wp-content/plugins/yoo-slider/views/admin/gks-admin-modal-spinner.php
- 49× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require_once(GKS_CLASSES_DIR_PATH/GKSLicenseCore.php): failed to open stream: No such file or directory in wp-content/plugins/yoo-slider/classes/GKSLicenseManager.php on line 3
- > PHP Warning
include_once(GKS_ADMIN_VIEWS_DIR_PATH/gks-header-banner.php): failed to open stream: No such file or directory in wp-content/plugins/yoo-slider/views/admin/gks-admin.php on line 5
- > PHP Warning
Use of undefined constant GKS_PKG_TYPE - assumed 'GKS_PKG_TYPE' (this will throw an Error in a future version of PHP) in wp-content/plugins/yoo-slider/views/front/layouts/gks-front-slider.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/yoo-slider/gks-config.php:10
- > PHP Fatal error
require_once(): Failed opening required 'GKS_CLASSES_DIR_PATH/GKSLicenseCore.php' (include_path='.:/usr/share/php') in wp-content/plugins/yoo-slider/classes/GKSLicenseManagerRecurring.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'GKS_CLASSES_DIR_PATH/GKSLicenseCore.php' (include_path='.:/usr/share/php') in wp-content/plugins/yoo-slider/classes/GKSLicenseManager.php on line 3
- > PHP Warning
Use of undefined constant GKS_CLASSES_DIR_PATH - assumed 'GKS_CLASSES_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/yoo-slider/classes/GKSLicenseManagerRecurring.php on line 3
- > PHP Warning
Use of undefined constant GKS_PKG_TYPE - assumed 'GKS_PKG_TYPE' (this will throw an Error in a future version of PHP) in wp-content/plugins/yoo-slider/views/admin/gks-admin-slider.php on line 75
- > PHP Warning
require_once(GKS_CLASSES_DIR_PATH/GKSDashboardListTable.php): failed to open stream: No such file or directory in wp-content/plugins/yoo-slider/views/admin/gks-admin-dashboard.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/yoo-slider/classes/GKSDashboardListTable.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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: These screenshots require images: #2 (Slider with caption and pagination), #3 (Slider with few customizations), #4 (Carousel slider with hover captions), #5 (Multicolumn carousel slider), #6 (Slider with thumbnails control), #7 (Embedded sliders), #8 (Coverflow slider), #9 (Clients logos carousel slider), #10 (Auto slide logos presentation), #11 (Sliders list dashboard screen), #12 (Slide composing screen), #13 (Slider settings screen)
yoo-slider/yoo-slider.php Passed 13 tests
"Yoo Slider - Image Slider & Video Slider" version 2.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
126 characters long description:
The most powerful WordPress slider plugin ever! Slide your images, videos or any html content on your website with few clicks.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected24,556 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 20 | 1,612 | 197 | 11,029 |
PHP | 22 | 1,244 | 335 | 7,158 |
JavaScript | 17 | 1,318 | 1,776 | 5,791 |
SVG | 3 | 0 | 0 | 578 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 5.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 37 | 82.22% |
▷ Concrete classes | 8 | 17.78% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 36 | 48.65% |
▷ Public methods | 71 | 95.95% |
▷ Protected methods | 1 | 1.35% |
▷ Private methods | 2 | 2.70% |
Functions | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 665 | |
▷ Global constants | 50 | 7.52% |
▷ Class constants | 615 | 92.48% |
▷ Public constants | 615 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
63 PNG files occupy 0.69MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/admin/block_icon.png | 15.38KB | 6.57KB | ▼ 57.29% |
images/admin/layouts/layout-masonry_dark.png | 16.33KB | 0.25KB | ▼ 98.46% |
images/general/icons/tick-icon-2.png | 0.99KB | 1.21KB | 0.00% |
images/general/icons/tick-icon-3.png | 8.83KB | 3.70KB | ▼ 58.15% |
images/general/icons/save-icon-1.png | 0.61KB | 0.54KB | ▼ 11.61% |