Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼2.46MB] [CPU: ▼354.96ms] Passed 4 tests
A check of server-side resources used by Accarousel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.91 ▼1.61 | 4.33 ▼46.59 |
Dashboard /wp-admin | 1.93 ▼1.48 | 3.59 ▼29.93 |
Posts /wp-admin/edit.php | 1.93 ▼1.72 | 5.06 ▼30.72 |
Add New Post /wp-admin/post-new.php | 1.93 ▼5.05 | 3.92 ▼1,312.61 |
Media Library /wp-admin/upload.php | 1.93 ▼1.37 | 3.85 ▼22.31 |
Add New /wp-admin/post-new.php?post_type=accarousel-items | 1.93 | 4.32 |
Accarousel Category /wp-admin/edit-tags.php?taxonomy=accarousel_cat&post_type=accarousel-items | 1.93 | 3.96 |
Accarousel Items /wp-admin/edit.php?post_type=accarousel-items | 1.93 | 4.63 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Accarousel
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,959 ▲205 | 15.98 ▲0.35 | 8.79 ▲2.52 | 2.97 ▲0.18 |
Dashboard /wp-admin | 2,940 ▲82 | 6.10 ▼0.07 | 120.65 ▼14.72 | 172.89 ▲13.71 |
Posts /wp-admin/edit.php | 2,751 ▲60 | 3.24 ▼0.00 | 65.78 ▼2.91 | 146.31 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,701 ▼16 | 17.07 ▼4.89 | 415.82 ▼45.93 | 184.17 ▲23.00 |
Media Library /wp-admin/upload.php | 1,735 ▲40 | 5.55 ▲0.04 | 128.38 ▼17.96 | 204.02 ▲10.68 |
Add New /wp-admin/post-new.php?post_type=accarousel-items | 2,991 | 9.98 | 195.59 | 214.93 |
Accarousel Category /wp-admin/edit-tags.php?taxonomy=accarousel_cat&post_type=accarousel-items | 1,683 | 2.91 | 56.49 | 115.97 |
Accarousel Items /wp-admin/edit.php?post_type=accarousel-items | 1,443 | 3.09 | 61.53 | 121.30 |
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
Please fix the following items
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5768
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.)
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=accarousel-items
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5768
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/edit.php?post_type=accarousel-items
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5768
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Contributors: Plugin contributors not specified
accarousel/wp-accarouosel-main.php 85% from 13 tests
The primary PHP file in "Accarousel" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("accarousel.php" instead of "wp-accarouosel-main.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 184 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
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
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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% |