Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/simple-recent-posts-widget/simple-recent-posts-widget.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; al_simple_recent_posts has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼60.23ms] Passed 4 tests
A check of server-side resources used by Simple Recent Posts Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.37 | 5.24 ▼34.63 |
Dashboard /wp-admin | 2.12 ▼1.23 | 5.77 ▼61.92 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 8.00 ▼42.24 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 6.19 ▼102.11 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 7.19 ▼30.08 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_al_simple_recent_posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Simple Recent Posts Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.43 ▼0.25 | 1.68 ▲0.17 | 40.28 ▼1.78 |
Dashboard /wp-admin | 2,200 ▲15 | 5.81 ▲0.00 | 104.47 ▼7.76 | 37.82 ▼4.04 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.02 | 37.94 ▼2.82 | 34.59 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,539 ▲128 | 23.16 ▲5.57 | 659.89 ▲6.55 | 59.61 ▼8.23 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.30 ▲0.11 | 95.47 ▼22.34 | 46.12 ▼2.55 |
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
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/simple-recent-posts-widget/simple-recent-posts-widget.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; al_simple_recent_posts has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_al_simple_recent_posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
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
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-recent-posts-widget/simple-recent-posts-widget.php:12
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 16 tag instead of maximum 10
- Screenshots: A description for screenshot #2 is required in simple-recent-posts-widget/assets to your readme.txt
simple-recent-posts-widget/simple-recent-posts-widget.php Passed 13 tests
"Simple Recent Posts Widget" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
90 characters long description:
Provides a simple recent posts widget, including thumbnails, category, and number options.
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
Success! There were no dangerous files found in this plugin138 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 15 | 138 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin