Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Error in wp-content/plugins/images-asynchronous-load/library_wp.php+2677
Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/images-asynchronous-load/library_wp.php:2677
Stack trace:
#0 wp-content/plugins/images-asynchronous-load/library_wp.php(2611): Puvox\wp_plugin->is_not_bulk_activation()
#1 wp-includes/class-wp-hook.php(312): Puvox\wp_plugin->Puvox\{closure}()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(720): do_action()
Server metrics [RAM: ▲2.16MB] [CPU: ▲6.27ms] Passed 4 tests
Server-side resources used by Images Asynchronous Load
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.68 ▲2.22 | 55.81 ▲17.41 |
Dashboard /wp-admin | 5.51 ▲2.16 | 63.48 ▲5.80 |
Posts /wp-admin/edit.php | 5.56 ▲2.20 | 57.12 ▲9.88 |
Add New Post /wp-admin/post-new.php | 8.03 ▲2.14 | 94.24 ▼8.00 |
Media Library /wp-admin/upload.php | 5.37 ▲2.14 | 50.95 ▲19.75 |
Images asynchronous load /wp-admin/options-general.php?page=images-asynchronous-load | 5.34 | 49.12 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_images_asynchronous_load__errors_log |
New WordPress options |
---|
images-asynchronous-load |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Images Asynchronous Load: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲55 | 14.27 ▼0.08 | 2.40 ▲0.81 | 42.24 ▲2.07 |
Dashboard /wp-admin | 2,202 ▲28 | 5.63 ▲0.08 | 95.64 ▲7.00 | 42.50 ▼1.86 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 1.97 ▼0.04 | 35.41 ▲0.33 | 34.01 ▼5.73 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.04 ▼0.53 | 637.90 ▼34.58 | 63.88 ▲8.59 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.21 ▼0.02 | 93.49 ▼3.90 | 42.31 ▲0.56 |
Images asynchronous load /wp-admin/options-general.php?page=images-asynchronous-load | 966 | 2.13 | 33.24 | 57.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_images_asynchronous_load__errors_log
- Zombie WordPress options detected upon uninstall: 7 options
- images-asynchronous-load
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/images-asynchronous-load/library_wp.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
images-asynchronous-load/index.php 85% from 13 tests
The primary PHP file in "Images Asynchronous Load" version 1.06 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("images-asynchronous-load.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 466 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,552 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 1,250 | 5,093 | 3,537 |
JavaScript | 1 | 1 | 13 | 15 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,076)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 345.40 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 1,076.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 850 | |
▷ Static methods | 102 | 12.00% |
▷ Public methods | 843 | 99.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 0.82% |
Functions | 89 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 89 | 100.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