Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.67ms] Passed 4 tests
Analyzing server-side resources used by Preload LCP Image
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.19 ▼5.36 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.22 ▼1.54 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 46.78 ▼1.38 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 100.14 ▲12.34 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.63 ▲1.61 |
Preload LCP Image /wp-admin/options-general.php?page=preloadlcpimage | 3.21 | 31.22 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Preload LCP Image
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.36 ▼0.23 | 1.90 ▲0.09 | 37.86 ▼3.10 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▲0.04 | 82.86 ▼10.31 | 39.22 ▼1.05 |
Posts /wp-admin/edit.php | 2,269 ▲166 | 3.44 ▲1.43 | 87.09 ▲48.44 | 29.26 ▼7.65 |
Add New Post /wp-admin/post-new.php | 6,250 ▲4,722 | 26.13 ▲3.05 | 995.39 ▲321.59 | 43.44 ▼19.49 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.00 ▼0.18 | 103.87 ▲4.93 | 52.20 ▲10.67 |
Preload LCP Image /wp-admin/options-general.php?page=preloadlcpimage | 852 | 2.00 | 27.16 | 31.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(DR_PRELOAD_LCP_PATH/inc/metabox.php): failed to open stream: No such file or directory in wp-content/plugins/preload-lcp-image/inc/core.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/preload-lcp-image/inc/enqueue.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/preload-lcp-image/inc/metabox.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/preload-lcp-image/index.php:13
- > PHP Warning
Use of undefined constant DR_PRELOAD_LCP_PATH - assumed 'DR_PRELOAD_LCP_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/preload-lcp-image/inc/core.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/preload-lcp-image/inc/options.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/preload-lcp-image/inc/display.php:63
- > PHP Fatal error
require_once(): Failed opening required 'DR_PRELOAD_LCP_PATH/inc/metabox.php' (include_path='.:/usr/share/php') in wp-content/plugins/preload-lcp-image/inc/core.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: lcp, site optimisation, site speed, preload, largest contentful paint...
preload-lcp-image/index.php 92% from 13 tests
The main PHP script in "Preload LCP Image" version 1.0.3 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("preload-lcp-image.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin335 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 87 | 94 | 259 |
CSS | 1 | 10 | 1 | 52 |
JavaScript | 1 | 17 | 14 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected