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.14MB] [CPU: ▼14.60ms] Passed 4 tests
Analyzing server-side resources used by BJ Lazy Load
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.53 ▲4.73 |
Dashboard /wp-admin | 3.23 ▼0.11 | 30.71 ▼33.25 |
Posts /wp-admin/edit.php | 3.30 ▼0.06 | 40.68 ▼7.56 |
Add New Post /wp-admin/post-new.php | 5.49 ▼0.40 | 77.79 ▼15.01 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.26 ▼2.56 |
BJ Lazy Load /wp-admin/options-general.php?page=bj-lazy-load | 3.21 | 29.13 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BJ Lazy Load
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.81 ▲0.43 | 2.83 ▲1.16 | 39.55 ▼4.74 |
Dashboard /wp-admin | 2,213 ▲25 | 5.90 ▲1.06 | 96.36 ▼6.20 | 38.51 ▼1.67 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 1.99 ▲0.00 | 39.81 ▲4.07 | 35.01 ▲3.76 |
Add New Post /wp-admin/post-new.php | 6,212 ▲4,698 | 19.27 ▲1.75 | 873.59 ▲201.50 | 56.11 ▼3.05 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.09 | 104.82 ▲4.51 | 48.36 ▲7.28 |
BJ Lazy Load /wp-admin/options-general.php?page=bj-lazy-load | 898 | 1.71 | 27.38 | 27.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=bj-lazy-load
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/options-general.php?page=bj-lazy-load
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=bj-lazy-load
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/bj-lazy-load/inc/scb/BoxesPage.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bj-lazy-load/inc/compat/mobilepress.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bj-lazy-load/inc/class-bjll-skip-post.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bj-lazy-load/inc/compat/opera-mini.php:9
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/bj-lazy-load/inc/class-bjll-adminpage.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bj-lazy-load/inc/compat/wp-print.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bj-lazy-load/inc/class-bjll-skip-post.php:27
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bj-lazy-load/inc/scb/Widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bj-lazy-load/inc/compat/wptouch.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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: javascript, images, iframes, bandwidth, optimize...
bj-lazy-load/bj-lazy-load.php Passed 13 tests
"BJ Lazy Load" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
Lazy image loading makes your site load faster and saves bandwidth.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,324 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 707 | 881 | 1,871 |
PO File | 4 | 142 | 156 | 377 |
JavaScript | 2 | 27 | 0 | 76 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 10.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 5 | 20.83% |
▷ Concrete classes | 19 | 79.17% |
▷ Final classes | 0 | 0.00% |
Methods | 192 | |
▷ Static methods | 63 | 32.81% |
▷ Public methods | 150 | 78.12% |
▷ Protected methods | 31 | 16.15% |
▷ Private methods | 11 | 5.73% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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 images were found in this plugin