Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/donbaler-recent-posts-widget/index.php+53
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼58.18ms] Passed 4 tests
This is a short check of server-side resources used by Donbaler Recent Posts Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.83 ▼41.92 |
Dashboard /wp-admin | 2.05 ▼1.26 | 4.90 ▼52.01 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.49 ▼43.59 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.29 ▼95.18 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.55 ▼31.67 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_wp_donbaler |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Donbaler Recent Posts Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲136 | 13.77 ▼0.82 | 8.47 ▲6.56 | 41.97 ▼2.39 |
Dashboard /wp-admin | 2,198 ▲18 | 5.52 ▼0.08 | 85.65 ▼3.48 | 39.76 ▲2.30 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.03 | 39.01 ▼1.01 | 33.92 ▼2.02 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.17 ▼0.08 | 666.28 ▼28.82 | 62.42 ▼3.34 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.18 ▲0.04 | 103.76 ▼13.71 | 48.44 ▲1.95 |
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
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/donbaler-recent-posts-widget/index.php+53
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_wp_donbaler
- widget_recent-comments
- 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
Even though no errors were found, this is by no means an exhaustive test
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/donbaler-recent-posts-widget/index.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)
There were no browser issues found
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
4 plugin tags: microblog, widget, donbaler, recent posts
donbaler-recent-posts-widget/index.php 92% from 13 tests
The main file in "Donbaler Recent Posts Widget" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("donbaler-recent-posts-widget.php" instead of "index.php")
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
No dangerous file extensions were detected174 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 0 | 0 | 83 |
JavaScript | 1 | 0 | 0 | 49 |
PHP | 1 | 5 | 8 | 42 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 1 | |
▷ Named functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin