Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼1.86MB] [CPU: ▼367.40ms] Passed 4 tests
An overview of server-side resources used by PPM Carousel
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.77 ▼1.06 | 5.97 ▼24.56 |
Dashboard /wp-admin | 1.79 ▼1.26 | 6.02 ▼32.00 |
Posts /wp-admin/edit.php | 1.79 ▼1.31 | 6.29 ▼39.71 |
Add New Post /wp-admin/post-new.php | 1.79 ▼3.64 | 5.29 ▼1,362.94 |
Media Library /wp-admin/upload.php | 1.79 ▼1.21 | 5.48 ▼34.93 |
Carousel Images /wp-admin/edit.php?post_type=carousel-image | 1.79 | 5.16 |
Add New /wp-admin/post-new.php?post_type=carousel-image | 1.79 | 5.97 |
Server storage [IO: ▲0.21MB] [DB: ▲1.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for PPM Carousel
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲184 | 16.38 ▲0.97 | 12.18 ▲2.42 | 45.63 ▲2.76 |
Dashboard /wp-admin | 2,950 ▲100 | 6.09 ▲0.25 | 136.82 ▲3.66 | 118.03 ▲9.96 |
Posts /wp-admin/edit.php | 2,744 ▲41 | 2.73 ▲0.05 | 65.88 ▼0.65 | 88.98 ▲9.49 |
Add New Post /wp-admin/post-new.php | 1,882 ▲29 | 19.19 ▲0.18 | 381.35 ▲14.23 | 104.71 ▼5.29 |
Media Library /wp-admin/upload.php | 1,757 ▼30 | 5.02 ▼0.00 | 157.97 ▲16.87 | 107.07 ▼0.37 |
Carousel Images /wp-admin/edit.php?post_type=carousel-image | 1,404 | 2.64 | 66.38 | 71.64 |
Add New /wp-admin/post-new.php?post_type=carousel-image | 2,187 | 4.53 | 115.05 | 75.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲1.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ppm-carousel-plugin-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=carousel-image
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ppm-carousel-plugin-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=carousel-image
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ppm-carousel-plugin-script-active handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=carousel-image
- > User notice in wp-includes/functions.php+5663
wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ppm-carousel-plugin-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/ppm-carousel/plugin-hook.php:13
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ppm-carousel/plugin-hook.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ppm-carousel/carousel-img-type.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (PPM Carousel in a post), #2 (PPM Carousel with large Image)
- Donate link: Invalid URI ("")
ppm-carousel/plugin-hook.php 92% from 13 tests
This is the main PHP file of "PPM Carousel" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ppm-carousel.php" instead of "plugin-hook.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 plugin140 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 30 | 87 |
JavaScript | 4 | 11 | 37 | 52 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/nav_tablet.png | 1.28KB | 0.36KB | ▼ 72.13% |
js/carousel.png | 1.10KB | 0.24KB | ▼ 78.04% |
css/images/nav.png | 0.64KB | 0.45KB | ▼ 29.70% |
css/images/nav_mobile.png | 1.17KB | 0.25KB | ▼ 78.85% |