Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.59MB] [CPU: ▼44.76ms] Passed 4 tests
A check of server-side resources used by Easy Recent Posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.40 ▼1.06 | 11.23 ▼33.65 |
Dashboard /wp-admin | 2.42 ▼0.89 | 13.54 ▼40.00 |
Posts /wp-admin/edit.php | 2.42 ▼0.94 | 15.03 ▼33.36 |
Add New Post /wp-admin/post-new.php | 2.42 ▼3.47 | 13.74 ▼72.02 |
Media Library /wp-admin/upload.php | 2.42 ▼0.82 | 11.80 ▼24.78 |
Server storage [IO: ▲0.04MB] [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: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_thissimyurl_easyrecentposts_widget |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Easy Recent Posts: 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.48 ▼0.02 | 1.83 ▼0.29 | 43.31 ▼5.11 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼1.02 | 100.12 ▼21.12 | 39.97 ▼6.51 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.04 | 34.09 ▼6.23 | 33.74 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,536 ▼7 | 23.21 ▲5.07 | 653.46 ▲29.93 | 56.44 ▼1.51 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▲0.01 | 96.44 ▼4.33 | 42.76 ▼0.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/easy-recent-posts/widgets/thissimyurl_EasyRecentPosts_Widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; thissimyurl_EasyRecentPosts_Widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- widget_thissimyurl_easyrecentposts_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-recent-posts/widgets/thissimyurl_EasyRecentPosts_Widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
easy-recent-posts/easy-recent-posts.php Passed 13 tests
The principal PHP file in "Easy Recent Posts" v. 15.01 is loaded by WordPress automatically on each request
67 characters long description:
An easy to use WordPress function to add Recent Posts to any theme.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin505 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 223 | 254 | 320 |
PO File | 2 | 56 | 112 | 154 |
CSS | 1 | 21 | 6 | 31 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 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 | 8 | |
▷ Global constants | 8 | 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
No PNG files were detected