Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.31ms] Passed 4 tests
Server-side resources used by Simple Owl Shortcodes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 36.34 ▼2.95 |
Dashboard /wp-admin | 3.36 ▲0.01 | 44.93 ▼21.60 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.07 ▼0.07 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.83 ▲4.54 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.72 ▼0.60 |
Simple Owl Shortcodes /wp-admin/options-general.php?page=simple-owl-shortcodes/owl-carousel-shortcodes.php | 3.24 | 45.12 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
owls_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Owl Shortcodes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲189 | 14.08 ▼0.21 | 6.15 ▲4.30 | 40.29 ▼7.48 |
Dashboard /wp-admin | 2,212 ▲24 | 4.83 ▼1.05 | 110.73 ▼3.06 | 41.87 ▼7.99 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.05 ▲0.08 | 38.92 ▲4.70 | 33.83 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.41 ▲0.17 | 642.16 ▼28.61 | 59.17 ▲8.93 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.20 ▲0.01 | 99.57 ▲2.38 | 41.72 ▲0.32 |
Simple Owl Shortcodes /wp-admin/options-general.php?page=simple-owl-shortcodes/owl-carousel-shortcodes.php | 871 | 2.05 | 31.62 | 33.04 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- owls_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-owl-shortcodes/inc/owls_wrapper.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-owl-shortcodes/inc/owls_item.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-owl-shortcodes/inc/owls_wrapper.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: wordpress, owl carousel, shortcode
simple-owl-shortcodes/owl-carousel-shortcodes.php 85% from 13 tests
The main PHP file in "Simple Owl Shortcodes" ver. 2.1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("simple-owl-shortcodes.php" instead of "owl-carousel-shortcodes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,512 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 476 | 917 | 2,006 |
CSS | 7 | 23 | 55 | 230 |
PHP | 3 | 20 | 9 | 142 |
Markdown | 3 | 40 | 0 | 76 |
PO File | 1 | 22 | 34 | 58 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/owl_item.png | 1.94KB | 0.89KB | ▼ 54.13% |
assets/images/owl_wrapper.png | 2.00KB | 0.90KB | ▼ 55.12% |
assets/libs/owlcarousel/assets/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |