Benchmarks
Plugin footprint 83% from 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.29MB] [CPU: ▼3.64ms] Passed 4 tests
An overview of server-side resources used by SARVAROV Lazy Load
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.19 | 42.00 ▼1.56 |
Dashboard /wp-admin | 3.66 ▲0.36 | 47.36 ▼0.02 |
Posts /wp-admin/edit.php | 3.71 ▲0.36 | 47.60 ▼0.61 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 92.43 ▼12.35 |
Media Library /wp-admin/upload.php | 3.52 ▲0.30 | 36.68 ▲0.86 |
Lazy Load /wp-admin/options-general.php?page=sarvarov_lazy_load_settings | 3.50 | 34.39 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for SARVAROV Lazy Load
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲161 | 13.65 ▼0.78 | 6.78 ▲5.05 | 43.91 ▲3.23 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▲1.01 | 105.50 ▲0.37 | 42.92 ▼1.78 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.07 | 39.86 ▼1.97 | 35.29 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.71 ▼0.79 | 631.68 ▲22.47 | 57.55 ▲4.99 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.27 ▲0.06 | 96.97 ▲1.04 | 43.08 ▼0.66 |
Lazy Load /wp-admin/options-general.php?page=sarvarov_lazy_load_settings | 1,865 | 8.54 | 120.46 | 42.35 |
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
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sarvarov-lazy-load/admin/partials/sections.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sarvarov-lazy-load/admin/partials/sidebar.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=sarvarov_lazy_load_settings
- > Javascript (severe) in unknown
/wp-content/plugins/sarvarov-lazy-load/admin/js/wp-color-picker-alpha.js?ver=6.3.1 23:16 Uncaught ReferenceError: wpColorPickerL10n is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
sarvarov-lazy-load/sarvarov-lazy-load.php 92% from 13 tests
Analyzing the main PHP file in "SARVAROV Lazy Load" version 1.1.0
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,918 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 376 | 685 | 1,668 |
JavaScript | 7 | 243 | 178 | 982 |
CSS | 3 | 45 | 18 | 268 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 39.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 1 | 2.04% |
▷ Public methods | 32 | 65.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 34.69% |
Functions | 21 | |
▷ Named functions | 2 | 9.52% |
▷ Anonymous functions | 19 | 90.48% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin