Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.11ms] Passed 4 tests
An overview of server-side resources used by WP Deferred JavaScripts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 36.99 ▼5.71 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.08 ▼3.37 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.67 ▼3.25 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.16 ▲3.90 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.79 ▲6.95 |
WP Deferred Javascripts /wp-admin/options-general.php?page=wp-deferred-javascripts | 3.22 | 33.08 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Deferred JavaScripts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,687 ▼99 | 7.60 ▼6.33 | 4.72 ▲2.69 | 42.82 ▼1.62 |
Dashboard /wp-admin | 2,202 ▲22 | 5.65 ▲0.01 | 93.64 ▲5.30 | 44.84 ▲3.98 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.02 | 40.35 ▼4.22 | 34.90 ▼4.42 |
Add New Post /wp-admin/post-new.php | 1,548 ▲8 | 23.11 ▲4.85 | 638.98 ▲27.37 | 54.95 ▲5.43 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▼0.04 | 100.52 ▼11.21 | 42.04 ▼6.39 |
WP Deferred Javascripts /wp-admin/options-general.php?page=wp-deferred-javascripts | 806 | 2.02 | 25.92 | 30.29 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-deferred-javascripts/wp-deferred-javascripts.php
- > /wp-content/plugins/wp-deferred-javascripts/inc/frontend.php
- > /wp-content/plugins/wp-deferred-javascripts/inc/admin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: labjs, optimization, deferring, speed, asynchronous...
wp-deferred-javascripts/wp-deferred-javascripts.php Passed 13 tests
The principal PHP file in "WP Deferred JavaScripts" v. 2.0.5 is loaded by WordPress automatically on each request
102 characters long description:
This plugin defer the loading of all javascripts added by the way of wp_enqueue_script(), using LABJS.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected335 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 108 | 61 | 298 |
PO File | 1 | 5 | 7 | 36 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected