Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲0.07ms] Passed 4 tests
Analyzing server-side resources used by WP Owl Carousel
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 37.19 ▼2.99 |
Dashboard /wp-admin | 3.46 ▲0.15 | 47.30 ▼2.74 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.76 ▲1.02 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 96.11 ▲4.99 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.70 ▲5.07 |
Owl carousel /wp-admin/edit.php?post_type=wp_owl | 3.42 | 35.13 |
Add New /wp-admin/post-new.php?post_type=wp_owl | 3.89 | 49.70 |
Server storage [IO: ▲3.86MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 190 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Owl Carousel
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲207 | 13.81 ▼0.60 | 5.41 ▲3.55 | 39.95 ▼3.83 |
Dashboard /wp-admin | 2,236 ▲45 | 5.86 ▲0.99 | 101.84 ▲1.48 | 39.59 ▼4.35 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.04 ▼0.01 | 40.38 ▲3.36 | 37.59 ▲1.60 |
Add New Post /wp-admin/post-new.php | 1,577 ▲43 | 23.42 ▲0.16 | 641.42 ▼48.16 | 37.06 ▼10.70 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.25 ▲0.03 | 109.74 ▲2.14 | 48.08 ▲0.81 |
Owl carousel /wp-admin/edit.php?post_type=wp_owl | 1,077 | 1.95 | 29.54 | 28.62 |
Add New /wp-admin/post-new.php?post_type=wp_owl | 2,443 | 4.17 | 91.05 | 46.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-owl-carousel/wp_owl_carousel.php
- > /wp-content/plugins/wp-owl-carousel/owl_settings.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-owl-carousel/CMB2/bootstrap.php:8
- > PHP Notice
Undefined variable: test_root in wp-content/plugins/wp-owl-carousel/CMB2/tests/bootstrap.php on line 24
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-owl-carousel/CMB2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-owl-carousel/CMB2/example-functions.php:53
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-owl-carousel/CMB2/tests/cmb-tests-base.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-owl-carousel/CMB2/init.php:68
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-owl-carousel/CMB2/tests/cmb-tests-base.php:3
- > PHP Warning
require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-owl-carousel/CMB2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-owl-carousel/CMB2/tests/cmb-tests-base.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-owl-carousel/CMB2/tests/cmb-tests-base.php:3
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: carousel, slideshow, slider, owl carousel
wp-owl-carousel/wp_owl_carousel.php 85% from 13 tests
The main PHP script in "WP Owl Carousel" version 1.1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-owl-carousel.php" instead of "wp_owl_carousel.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
Everything looks great! No dangerous files found in this plugin78,645 lines of code in 149 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 0 | 0 | 47,741 |
PO File | 94 | 8,836 | 11,752 | 20,210 |
PHP | 22 | 1,251 | 1,868 | 4,519 |
CSS | 5 | 973 | 526 | 2,262 |
JavaScript | 7 | 389 | 176 | 2,133 |
Sass | 9 | 158 | 24 | 1,069 |
Markdown | 4 | 140 | 0 | 378 |
YAML | 2 | 9 | 0 | 148 |
JSON | 3 | 0 | 0 | 118 |
Bourne Shell | 1 | 17 | 6 | 67 |
PHP code Passed 2 tests
An short overview of 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.37 |
Average class complexity | 27.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 303 | |
▷ Static methods | 16 | 5.28% |
▷ Public methods | 293 | 96.70% |
▷ Protected methods | 5 | 1.65% |
▷ Private methods | 5 | 1.65% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
CMB2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
CMB2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
CMB2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
CMB2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
CMB2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |