Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.21ms] Passed 4 tests
An overview of server-side resources used by WP Enqueue
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.02 | 35.25 ▼7.92 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.11 ▼5.69 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.93 ▼19.82 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.75 ▼3.41 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.95 ▲4.43 |
WP Enqueue /wp-admin/options-general.php?page=wpenq-menu | 3.24 | 33.87 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Enqueue
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.17 ▼1.43 | 1.69 ▼0.14 | 43.43 ▲0.01 |
Dashboard /wp-admin | 2,210 ▲21 | 5.82 ▼0.09 | 108.79 ▼12.92 | 40.61 ▼6.26 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.06 ▲0.06 | 38.62 ▼12.23 | 35.22 ▼9.62 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.32 ▲5.11 | 658.79 ▲36.60 | 54.57 ▲0.09 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.26 ▲0.01 | 93.09 ▼16.48 | 44.88 ▼2.55 |
WP Enqueue /wp-admin/options-general.php?page=wpenq-menu | 1,209 | 1.68 | 25.44 | 26.61 |
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: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-enqueue/templates/single-wrap.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: cond in wp-content/plugins/wp-enqueue/templates/single-wrap.php on line 15
- > PHP Fatal error
Uncaught Error: Call to a member function get_option_name() on null in wp-content/plugins/wp-enqueue/templates/styles.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-enqueue/enqueue.php:196
- > PHP Notice
Undefined variable: path_value in wp-content/plugins/wp-enqueue/templates/single-wrap.php on line 12
- > PHP Notice
Undefined variable: conditions in wp-content/plugins/wp-enqueue/templates/single-wrap.php on line 19
- > PHP Notice
Undefined variable: i in wp-content/plugins/wp-enqueue/templates/single-wrap.php on line 18
- > PHP Notice
Undefined variable: path in wp-content/plugins/wp-enqueue/templates/single-wrap.php on line 2
- > PHP Notice
Undefined variable: files in wp-content/plugins/wp-enqueue/templates/single-wrap.php on line 5
- > PHP Notice
Undefined variable: path_value in wp-content/plugins/wp-enqueue/templates/single-wrap.php on line 12
- > PHP Fatal error
Uncaught Error: Call to a member function get_option_name() on null in wp-content/plugins/wp-enqueue/templates/scripts.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: enqueue, styles, scripts, wp_enqueue
wp-enqueue/wp-enqueue.php 92% from 13 tests
The main PHP script in "WP Enqueue" version 1.2.0 is automatically included on every request by WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 212 characters long)
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
Success! There were no dangerous files found in this plugin548 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 90 | 87 | 476 |
JavaScript | 2 | 8 | 6 | 64 |
CSS | 2 | 2 | 9 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 8 | 50.00% |
▷ Public methods | 12 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 25.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected