Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼296.42ms] Passed 4 tests
A check of server-side resources used by Enqueue Anything
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 52.56 ▲5.03 |
Dashboard /wp-admin | 3.48 ▲0.07 | 33.16 ▲0.79 |
Posts /wp-admin/edit.php | 3.71 ▲0.06 | 40.28 ▲2.04 |
Add New Post /wp-admin/post-new.php | 7.02 ▲0.05 | 92.98 ▼1,189.30 |
Media Library /wp-admin/upload.php | 3.36 ▲0.06 | 26.35 ▲0.78 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Enqueue Anything
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,796 ▲52 | 15.65 ▼0.05 | 6.07 ▲0.27 | 2.62 ▼0.26 |
Dashboard /wp-admin | 2,889 ▲35 | 6.12 ▼0.09 | 119.49 ▼17.19 | 157.52 ▲0.88 |
Posts /wp-admin/edit.php | 2,706 ▲18 | 3.24 ▲0.00 | 64.95 ▲0.19 | 141.99 ▼4.80 |
Add New Post /wp-admin/post-new.php | 1,678 ▼12 | 18.39 ▼2.29 | 409.06 ▼30.52 | 155.96 ▼2.33 |
Media Library /wp-admin/upload.php | 1,713 ▲15 | 5.52 ▲0.02 | 142.57 ▼11.98 | 191.24 ▼9.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/enqueue-anything/partials/saved-table-page.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/enqueue-anything/enqueue-any-settings.php:105
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/enqueue-anything/enqueue-any-settings.php:105
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== enqueue-anything ===
)
enqueue-anything/enqueue-any.php 85% from 13 tests
This is the main PHP file of "Enqueue Anything" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("enqueue-anything.php" instead of "enqueue-any.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
Everything looks great! No dangerous files found in this plugin411 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 38 | 24 | 277 |
CSS | 2 | 18 | 1 | 86 |
JavaScript | 2 | 7 | 0 | 48 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG images were not found in this plugin