Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.90MB] [CPU: ▼51.57ms] Passed 4 tests
This is a short check of server-side resources used by Accarousel
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.06 ▼35.91 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.95 ▼41.89 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 7.56 ▼41.24 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.30 ▼87.23 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 7.24 ▼26.14 |
Accarousel Category /wp-admin/edit-tags.php?taxonomy=accarousel_cat&post_type=accarousel-items | 2.11 | 5.20 |
Accarousel Items /wp-admin/edit.php?post_type=accarousel-items | 2.11 | 5.54 |
Add New /wp-admin/post-new.php?post_type=accarousel-items | 2.11 | 7.15 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Accarousel
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲204 | 13.62 ▼0.73 | 5.10 ▲3.30 | 39.92 ▼5.30 |
Dashboard /wp-admin | 2,255 ▲67 | 4.85 ▼0.25 | 106.95 ▼6.00 | 66.86 ▲25.20 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 1.98 ▼0.04 | 39.89 ▼2.64 | 30.96 ▼5.66 |
Add New Post /wp-admin/post-new.php | 1,707 ▲174 | 21.76 ▼1.55 | 729.82 ▲98.15 | 45.90 ▼6.02 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 4.20 ▲0.00 | 100.59 ▲0.52 | 67.73 ▲21.63 |
Accarousel Category /wp-admin/edit-tags.php?taxonomy=accarousel_cat&post_type=accarousel-items | 1,311 | 2.14 | 32.06 | 32.65 |
Accarousel Items /wp-admin/edit.php?post_type=accarousel-items | 1,116 | 1.94 | 31.98 | 29.40 |
Add New /wp-admin/post-new.php?post_type=accarousel-items | 2,295 | 7.63 | 164.71 | 112.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function 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 accarousel-main-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
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
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=accarousel-items
- > User notice in wp-includes/functions.php+5905
Function 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 accarousel-main-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=accarousel-items
- > User notice in wp-includes/functions.php+5905
Function 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 accarousel-main-css 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 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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accarousel/wp-accarouosel-main.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Contributors: The plugin contributors field is not present
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
accarousel/wp-accarouosel-main.php 85% from 13 tests
"Accarousel" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("accarousel.php" instead of "wp-accarouosel-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected275 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 51 | 41 | 180 |
CSS | 1 | 0 | 0 | 94 |
JavaScript | 1 | 0 | 3 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
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 |
images/icon.png | 2.90KB | 0.20KB | ▼ 93.20% |