Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/simple-carousel-slider/simple-carousel-slider.php+36
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.62MB] [CPU: ▼12.22ms] Passed 4 tests
This is a short check of server-side resources used by Simple Carousel Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 49.19 ▲7.71 |
Dashboard /wp-admin | 3.39 ▲0.08 | 53.05 ▲1.52 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 53.39 ▲6.60 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.68 | 38.74 ▼54.96 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.93 ▼2.04 |
Add Carousel Images /wp-admin/post-new.php?post_type=simple-carousel | 3.15 | 32.92 |
Carousel Images /wp-admin/edit.php?post_type=simple-carousel | 3.36 | 39.36 |
Settings /wp-admin/edit.php?post_type=simple-carousel&page=simple-carousel-options | 3.26 | 34.06 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
drt_scp_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Carousel Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,086 ▲315 | 15.26 ▲0.97 | 7.45 ▲5.28 | 43.02 ▼2.52 |
Dashboard /wp-admin | 2,376 ▲188 | 6.42 ▲0.54 | 131.92 ▲7.67 | 39.79 ▼5.53 |
Posts /wp-admin/edit.php | 2,285 ▲196 | 3.43 ▲1.44 | 54.62 ▲15.56 | 36.28 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.02 ▼0.21 | 628.69 ▼16.50 | 36.13 ▼26.17 |
Media Library /wp-admin/upload.php | 1,421 ▲30 | 4.16 ▼0.09 | 88.10 ▼18.03 | 45.95 ▼1.22 |
Add Carousel Images /wp-admin/post-new.php?post_type=simple-carousel | 1,671 | 3.59 | 69.00 | 31.49 |
Carousel Images /wp-admin/edit.php?post_type=simple-carousel | 1,246 | 3.39 | 43.54 | 28.31 |
Settings /wp-admin/edit.php?post_type=simple-carousel&page=simple-carousel-options | 1,061 | 3.11 | 38.48 | 28.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- drt_scp_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=simple-carousel
- > Notice in wp-content/plugins/simple-carousel-slider/simple-carousel-slider.php+90
Undefined index: post_type
- > GET request to /wp-admin/post-new.php?post_type=simple-carousel
- > Notice in wp-content/plugins/simple-carousel-slider/simple-carousel-slider.php+102
Undefined index: post_title
- > GET request to /wp-admin/post-new.php?post_type=simple-carousel
- > Notice in wp-content/plugins/simple-carousel-slider/simple-carousel-slider.php+103
Undefined index: scp_link
- > GET request to /wp-admin/post-new.php?post_type=simple-carousel
- > Notice in wp-content/plugins/simple-carousel-slider/simple-carousel-slider.php+104
Undefined index: scp_image
- > GET request to /wp-admin/post-new.php?post_type=simple-carousel
- > Notice in wp-content/plugins/simple-carousel-slider/simple-carousel-slider.php+82
Trying to access array offset on value of type bool
- > GET request to /wp-admin/edit.php?post_type=simple-carousel&page=simple-carousel-options
- > Notice in wp-content/plugins/simple-carousel-slider/simple-carousel-slider.php+141
Undefined index: settings-updated
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
Almost there! Just fix the following items
- 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/simple-carousel-slider/simple-carousel-slider.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== simple-carousel-slider ===
)
simple-carousel-slider/simple-carousel-slider.php Passed 13 tests
The main PHP file in "Simple Carousel Plugin" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
59 characters long description:
A simple plugin to add a carousel type slider to a website.
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
Good job! No executable or dangerous file extensions detected313 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 24 | 237 |
JavaScript | 2 | 9 | 5 | 62 |
CSS | 1 | 2 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin