Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼265.47ms] Passed 4 tests
Analyzing server-side resources used by WP Defer Loading
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 43.25 ▲8.54 |
Dashboard /wp-admin | 3.08 ▲0.03 | 42.07 ▲1.28 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 40.93 ▼4.83 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 91.56 ▼1,053.32 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 30.75 ▼5.02 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP Defer Loading: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,635 ▲53 | 15.89 ▲0.38 | 8.35 ▲0.12 | 57.28 ▲11.99 |
Dashboard /wp-admin | 2,930 ▲77 | 5.97 ▲0.09 | 137.63 ▲8.93 | 107.23 ▲9.91 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.68 ▼0.01 | 67.02 ▼4.80 | 89.30 ▲3.33 |
Add New Post /wp-admin/post-new.php | 1,653 ▼200 | 18.76 ▼0.07 | 374.94 ▼15.22 | 108.22 ▲0.74 |
Media Library /wp-admin/upload.php | 1,775 ▼0 | 5.00 ▲0.02 | 167.12 ▲6.36 | 108.04 ▼12.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Scripts' not found in wp-content/plugins/wp-defer-loading/wp-defer-loading.php:29
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (performance) image not found
wp-defer-loading/wp-defer-loading.php Passed 13 tests
The main PHP file in "WP Defer Loading" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
109 characters long description:
Defer loading javascript for WordPress. Without any additional library. Just the way Google ask you to do it.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,279 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 299 | 109 | 1,139 |
PHP | 1 | 62 | 47 | 140 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 8 | |
▷ Static methods | 2 | 25.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 0.00KB | 0.00KB | 0.00% |