Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/recent-featured-posts-widget/recent-featured-posts-widget.php+19
Function create_function() is deprecated
Server metrics [RAM: ▼1.75MB] [CPU: ▼55.38ms] Passed 4 tests
This is a short check of server-side resources used by Recent & Featured Posts Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.23 ▼1.23 | 4.63 ▼39.03 |
Dashboard /wp-admin | 2.25 ▼1.05 | 5.94 ▼50.60 |
Posts /wp-admin/edit.php | 2.25 ▼1.10 | 6.51 ▼42.03 |
Add New Post /wp-admin/post-new.php | 2.25 ▼3.63 | 5.48 ▼89.85 |
Media Library /wp-admin/upload.php | 2.25 ▼0.98 | 5.41 ▼29.92 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_rfpw_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Recent & Featured Posts Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.13 | 1.60 ▼0.05 | 41.16 ▼2.36 |
Dashboard /wp-admin | 2,198 ▲21 | 5.57 ▼0.05 | 85.39 ▼10.11 | 38.35 ▼3.16 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.05 | 40.38 ▲3.99 | 36.65 ▲2.04 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 18.15 ▼4.98 | 622.64 ▼61.50 | 72.00 ▲18.86 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▲0.00 | 101.60 ▲0.03 | 45.10 ▲1.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/recent-featured-posts-widget/recent-featured-posts-widget.php+19
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_rfpw_widget
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: You are using too many tags: 15 tag instead of maximum 10
recent-featured-posts-widget/recent-featured-posts-widget.php 92% from 13 tests
The principal PHP file in "Recent & Featured Posts Widget" v. 1.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
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 plugin424 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 72 | 76 | 360 |
CSS | 1 | 11 | 0 | 64 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 70.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 5.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected