Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/recent-post-lazy-load/inc/widget/widget.php+282
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼62.81ms] Passed 4 tests
Analyzing server-side resources used by Recent Post Lazy Load
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.00 ▼37.12 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.49 ▼46.36 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 4.99 ▼45.12 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.52 ▼122.65 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.16 ▼28.42 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_rp_widget |
rp_all_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Recent Post Lazy Load
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲126 | 13.46 ▼0.89 | 8.32 ▲6.60 | 41.15 ▲0.93 |
Dashboard /wp-admin | 2,195 ▲21 | 5.64 ▲0.04 | 93.44 ▼8.18 | 80.57 ▲22.36 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.00 ▼0.03 | 39.25 ▲2.89 | 39.35 ▲5.38 |
Add New Post /wp-admin/post-new.php | 1,555 ▲20 | 21.03 ▲2.96 | 703.06 ▲65.51 | 51.55 ▼16.89 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.23 ▲0.04 | 98.44 ▼2.56 | 70.07 ▲27.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/recent-post-lazy-load/inc/widget/widget.php+282
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- widget_recent-comments
- rp_all_options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_rp_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/recent-post-lazy-load/rp-lazy-load.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recent-post-lazy-load/inc/admin/settings.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/recent-post-lazy-load/inc/front-end/shortcode.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/recent-post-lazy-load/inc/widget/widget.php:8
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
recent-post-lazy-load/rp-lazy-load.php 85% from 13 tests
"Recent Post Lazy Load" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("recent-post-lazy-load.php" instead of "rp-lazy-load.php")
- Description: Keep the plugin description shorter than 140 characters (currently 541 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected678 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 254 | 87 | 587 |
CSS | 1 | 16 | 0 | 81 |
JavaScript | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 5.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 34.37KB | 17.00KB | ▼ 50.55% |
screenshot-1.png | 78.02KB | 34.69KB | ▼ 55.54% |