Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5747
Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
Server metrics [RAM: ▲0.01MB] [CPU: ▼11.29ms] Passed 4 tests
Analyzing server-side resources used by Enhanced Recent Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.11 ▼2.18 |
Dashboard /wp-admin | 3.32 ▲0.01 | 50.40 ▲3.45 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.26 ▼5.29 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.03 ▼29.85 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.68 ▼7.83 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options |
---|
enh_rp_widget_options |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
enh_rp_plugin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Enhanced Recent Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.72 ▲0.46 | 2.16 ▼0.17 | 44.00 ▼11.06 |
Dashboard /wp-admin | 2,192 ▲15 | 5.51 ▼0.01 | 98.98 ▲6.50 | 42.37 ▲1.12 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.99 ▼0.00 | 35.11 ▼5.72 | 34.24 ▼6.50 |
Add New Post /wp-admin/post-new.php | 1,526 ▼8 | 23.47 ▲4.89 | 653.57 ▼1.11 | 59.98 ▼4.13 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.20 ▲0.01 | 98.62 ▼27.64 | 43.64 ▼5.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- can_compress_scripts
- enh_rp_plugin_options
- widget_recent-posts
- enh_rp_widget_options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/enhanced-recent-posts/includes/widget-class.php
- > /wp-content/plugins/enhanced-recent-posts/enhanced-recent-posts.php
- > /wp-content/plugins/enhanced-recent-posts/includes/plugin-class.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: posts, navigation, widget, latest posts, sidebar...
enhanced-recent-posts/enhanced-recent-posts.php Passed 13 tests
"Enhanced Recent Posts" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
43 characters long description:
Enhance the built-in "Recent Posts" widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin358 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 103 | 159 | 321 |
XML | 1 | 0 | 0 | 37 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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 images were found in this plugin