Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'activate_acquaint_owl_carousel' not found or invalid function name
Server metrics [RAM: ▼1.08MB] [CPU: ▼40.08ms] Passed 4 tests
An overview of server-side resources used by Acquaint Owl Carousel
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▼0.57 | 16.84 ▼22.55 |
Dashboard /wp-admin | 2.93 ▼0.37 | 19.48 ▼31.39 |
Posts /wp-admin/edit.php | 2.93 ▼0.42 | 17.66 ▼33.16 |
Add New Post /wp-admin/post-new.php | 2.93 ▼2.95 | 18.41 ▼73.20 |
Media Library /wp-admin/upload.php | 2.93 ▼0.29 | 15.77 ▼17.77 |
Acquaint Owl Carousel /wp-admin/edit.php?post_type=owl_carousel | 2.94 | 18.43 |
Add New Slider /wp-admin/post-new.php?post_type=owl_carousel | 2.93 | 16.66 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Acquaint Owl Carousel
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,067 ▲281 | 14.02 ▼0.36 | 12.66 ▲10.83 | 63.58 ▲20.82 |
Dashboard /wp-admin | 2,251 ▲45 | 5.92 ▲1.02 | 96.67 ▼9.35 | 38.99 ▼4.47 |
Posts /wp-admin/edit.php | 2,057 ▼43 | 2.06 ▲0.06 | 39.27 ▲0.84 | 34.68 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,564 ▲29 | 18.39 ▼4.93 | 637.02 ▼55.65 | 64.21 ▲0.95 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.27 ▲0.06 | 98.38 ▼2.00 | 45.59 ▲2.99 |
Acquaint Owl Carousel /wp-admin/edit.php?post_type=owl_carousel | 1,105 | 2.02 | 33.00 | 32.18 |
Add New Slider /wp-admin/post-new.php?post_type=owl_carousel | 1,770 | 2.71 | 56.15 | 66.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+77
Use of undefined constant AQSS_TEXT_DOMAIN - assumed 'AQSS_TEXT_DOMAIN' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 12 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=owl_carousel
- > Warning in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+80
Use of undefined constant AQSS_TEXT_DOMAIN - assumed 'AQSS_TEXT_DOMAIN' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/post-new.php?post_type=owl_carousel
- > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+497
Undefined index: slider_type
- > GET request to /wp-admin/post-new.php?post_type=owl_carousel
- > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+509
Undefined index: slider_image
- > GET request to /wp-admin/post-new.php?post_type=owl_carousel
- > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+509
Trying to access array offset on value of type null
- > GET request to /wp-admin/post-new.php?post_type=owl_carousel
- > Warning in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+509
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/post-new.php?post_type=owl_carousel
- > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+539
Undefined variable: slidetitle
- > GET request to /wp-admin/post-new.php?post_type=owl_carousel
- > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+545
Undefined variable: slideimage
- > GET request to /wp-admin/post-new.php?post_type=owl_carousel
- > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+551
Undefined variable: slidemerge
- > GET request to /wp-admin/post-new.php?post_type=owl_carousel
- > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+557
Undefined variable: slidevideo
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=owl_carousel
- > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+335
Undefined index: action
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/acquaint-owl-carousel/public/partials/acquaint-owl-carousel-public-display.php
- > /wp-content/plugins/acquaint-owl-carousel/admin/partials/acquaint-owl-carousel-admin-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
acquaint-owl-carousel/acquaint-owl-carousel.php Passed 13 tests
"Acquaint Owl Carousel" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
95 characters long description:
This is a owl carousel plugin, which provide a dynamic way to create owl carousel with options.
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
Good job! No executable or dangerous file extensions detected7,100 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 494 | 61 | 3,161 |
JavaScript | 5 | 474 | 975 | 2,789 |
PHP | 12 | 158 | 587 | 1,150 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 15 | |
▷ Named functions | 15 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/sprite.png | 2.03KB | 0.97KB | ▼ 52.12% |
images/s_pin.png | 1.52KB | 1.12KB | ▼ 26.29% |
assets/css/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
(invalid) admin/images/._sprite.png | 4.00KB | 0.00KB | ▼ 100.00% |