Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.21ms] Passed 4 tests
Analyzing server-side resources used by PAJ Featured Image Owl Carousel / Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.14 ▼8.61 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.95 ▲3.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.22 ▼0.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.49 ▼13.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.23 ▲1.58 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
PAJ Featured Image Owl Carousel / Slider: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲202 | 13.66 ▼0.60 | 9.50 ▲7.63 | 40.37 ▼4.77 |
Dashboard /wp-admin | 2,204 ▲13 | 5.83 ▲0.94 | 96.68 ▼5.27 | 37.30 ▼4.65 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.06 | 35.10 ▼3.50 | 31.82 ▼1.08 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.25 ▲5.80 | 699.73 ▲34.32 | 47.53 ▼2.74 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.18 ▲0.01 | 94.12 ▼7.26 | 44.43 ▼0.87 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/paj-featured-image-owl-carousel/paj-widgets/paj-carousel/shortcode/paj-carousel-shortcode.php
- > /wp-content/plugins/paj-featured-image-owl-carousel/paj-carousel-widget.php
- > /wp-content/plugins/paj-featured-image-owl-carousel/paj-widgets/paj-carousel/paj-carousel.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: instance in wp-content/plugins/paj-featured-image-owl-carousel/paj-widgets/paj-carousel/tpl/paj-carousel-template.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/paj-featured-image-owl-carousel/paj-widgets/paj-carousel/tpl/paj-carousel-template.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/paj-featured-image-owl-carousel/paj-widgets/paj-carousel/tpl/paj-carousel-template.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/paj-featured-image-owl-carousel/paj-widgets/paj-carousel/tpl/paj-carousel-template.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/paj-featured-image-owl-carousel/paj-widgets/paj-carousel/tpl/paj-carousel-template.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/paj-featured-image-owl-carousel/paj-widgets/paj-carousel/tpl/paj-carousel-template.php:12
- > PHP Notice
Undefined variable: instance in wp-content/plugins/paj-featured-image-owl-carousel/paj-widgets/paj-carousel/tpl/paj-carousel-template.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
paj-featured-image-owl-carousel/paj-carousel-widget.php 92% from 13 tests
The main PHP script in "PAJ Featured Image Owl Carousel / Slider" version 1.2.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("paj-featured-image-owl-carousel.php" instead of "paj-carousel-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,250 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 502 | 931 | 1,998 |
PHP | 4 | 190 | 49 | 736 |
CSS | 2 | 69 | 36 | 361 |
SVG | 1 | 0 | 1 | 155 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
paj-widgets/paj-carousel/shortcode/css/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |