Benchmarks
Plugin footprint 83% 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.46MB] [CPU: ▼6.67ms] Passed 4 tests
An overview of server-side resources used by Custom Post Carousels with Owl
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 42.95 ▲2.46 |
Dashboard /wp-admin | 3.78 ▲0.43 | 49.04 ▼12.64 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 44.94 ▲0.14 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 80.85 ▼16.64 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 40.12 ▲6.99 |
All Carousels /wp-admin/edit.php?post_type=owl-carousel | 3.74 | 37.76 |
Add New /wp-admin/post-new.php?post_type=owl-carousel | 3.77 | 48.18 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Custom Post Carousels with Owl: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.39 ▼0.23 | 1.92 ▲0.31 | 48.04 ▲9.25 |
Dashboard /wp-admin | 2,229 ▲49 | 5.80 ▲0.20 | 98.18 ▲13.59 | 41.55 ▼2.75 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.26 ▲0.28 | 34.64 ▼3.45 | 33.38 ▼4.46 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 23.72 ▲0.54 | 663.50 ▼11.34 | 68.96 ▲14.31 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.47 ▲0.33 | 110.10 ▲11.51 | 45.29 ▲0.47 |
All Carousels /wp-admin/edit.php?post_type=owl-carousel | 1,111 | 2.40 | 30.96 | 28.02 |
Add New /wp-admin/post-new.php?post_type=owl-carousel | 3,141 | 4.24 | 79.91 | 39.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: post carousel, reviews carousel, owl carousel 2, post slider, product slider...
dd-post-carousel/owl-carousel-2.php 69% from 13 tests
The primary PHP file in "Custom Post Carousels with Owl" version 1.4.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "3.0.0")
- Description: The description should be shorter than 140 characters (currently 160 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dd-post-carousel.php" instead of "owl-carousel-2.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,277 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 299 | 774 | 1,788 |
JavaScript | 7 | 83 | 130 | 778 |
CSS | 12 | 82 | 123 | 711 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 25.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 6.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 5 | 9.26% |
▷ Public methods | 45 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 16.67% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
admin/css/images/wpicons-2x.png | 14.58KB | 14.60KB | 0.00% |
public/css/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
admin/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
admin/css/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |