Benchmarks
Plugin footprint Passed 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.12MB] [CPU: ▼495.20ms] Passed 4 tests
Analyzing server-side resources used by wp-lazy-load
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 35.06 ▲17.07 |
Dashboard /wp-admin | 3.18 ▲0.12 | 44.57 ▲1.27 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 47.94 ▲6.77 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.11 | 85.69 ▼1,978.67 |
Media Library /wp-admin/upload.php | 3.12 ▲0.11 | 32.93 ▼10.17 |
WP Lazy Load /wp-admin/options-general.php?page=wp-lazy-load | 3.06 | 27.45 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 245 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for wp-lazy-load
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲72 | 15.83 ▲0.31 | 7.13 ▼1.81 | 48.03 ▲4.28 |
Dashboard /wp-admin | 2,935 ▲85 | 5.93 ▲0.01 | 133.20 ▲1.23 | 103.20 ▼4.55 |
Posts /wp-admin/edit.php | 2,708 ▲2 | 2.70 ▲0.02 | 62.08 ▼2.66 | 87.36 ▼7.87 |
Add New Post /wp-admin/post-new.php | 1,656 ▼197 | 18.79 ▼0.33 | 365.95 ▼14.41 | 106.47 ▼4.87 |
Media Library /wp-admin/upload.php | 1,780 ▲5 | 5.01 ▼0.02 | 145.28 ▼13.96 | 112.04 ▲1.02 |
WP Lazy Load /wp-admin/options-general.php?page=wp-lazy-load | 1,187 | 2.32 | 57.16 | 66.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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 items
- 143× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/wp-lazy-load/vendor/twig/twig/lib/Twig/Node/Expression/Binary/NotEqual.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/wp-lazy-load/vendor/twig/twig/lib/Twig/Node/Import.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/wp-lazy-load/vendor/twig/twig/lib/Twig/TokenParser/Flush.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/wp-lazy-load/vendor/twig/twig/lib/Twig/TokenParser/Do.php:15
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/wp-lazy-load/vendor/twig/twig/lib/Twig/TokenParser/From.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Twig_TestInterface' not found in wp-content/plugins/wp-lazy-load/vendor/twig/twig/lib/Twig/Test.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/wp-lazy-load/vendor/twig/twig/lib/Twig/TokenParser/Import.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/wp-lazy-load/vendor/twig/twig/lib/Twig/Extension/Sandbox.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Error' not found in wp-content/plugins/wp-lazy-load/vendor/twig/twig/lib/Twig/Error/Runtime.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Call' not found in wp-content/plugins/wp-lazy-load/vendor/twig/twig/lib/Twig/Node/Expression/Test.php:11
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Screenshot 1), #2 (Screenshot 2)
wp-lazy-load/wp-lazy-load.php Passed 13 tests
This is the main PHP file of "wp-lazy-load" version 0.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
Lazy Load images using jQuery Lazy Load.
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 plugin12,806 lines of code in 235 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 228 | 2,911 | 5,686 | 12,126 |
JavaScript | 3 | 86 | 35 | 349 |
JSON | 1 | 0 | 0 | 248 |
HTML | 1 | 1 | 0 | 61 |
YAML | 1 | 5 | 0 | 16 |
CSS | 1 | 2 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 7.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 21 | |
Traits | 0 | |
Classes | 202 | |
▷ Abstract classes | 10 | 4.95% |
▷ Concrete classes | 192 | 95.05% |
▷ Final classes | 0 | 0.00% |
Methods | 1,185 | |
▷ Static methods | 32 | 2.70% |
▷ Public methods | 1,053 | 88.86% |
▷ Protected methods | 108 | 9.11% |
▷ Private methods | 24 | 2.03% |
Functions | 54 | |
▷ Named functions | 51 | 94.44% |
▷ Anonymous functions | 3 | 5.56% |
Constants | 45 | |
▷ Global constants | 3 | 6.67% |
▷ Class constants | 42 | 93.33% |
▷ Public constants | 42 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin