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
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/latest-posts-widget/latest-posts.php+281
Function create_function() is deprecated
Server metrics [RAM: ▼1.76MB] [CPU: ▼199.06ms] Passed 4 tests
Server-side resources used by Latest Posts Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.87 ▼0.85 | 6.70 ▼19.83 |
Dashboard /wp-admin | 1.89 ▼1.17 | 7.50 ▼50.41 |
Posts /wp-admin/edit.php | 1.89 ▼1.22 | 4.90 ▼43.86 |
Add New Post /wp-admin/post-new.php | 1.89 ▼3.55 | 6.35 ▼676.62 |
Media Library /wp-admin/upload.php | 1.89 ▼1.12 | 6.19 ▼25.33 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_latest-posts-widget |
Browser metrics Passed 4 tests
Latest 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 / | 3,681 ▲109 | 16.16 ▲0.56 | 9.24 ▼1.94 | 51.52 ▼2.15 |
Dashboard /wp-admin | 2,967 ▲36 | 5.87 ▼0.09 | 142.48 ▼0.88 | 119.08 ▲3.81 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.68 ▼0.00 | 63.80 ▼3.96 | 96.60 ▲4.47 |
Add New Post /wp-admin/post-new.php | 1,683 ▲181 | 18.79 ▲0.02 | 385.69 ▲25.87 | 119.46 ▲9.91 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▼0.02 | 159.30 ▼2.76 | 122.50 ▼2.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/latest-posts-widget/latest-posts.php+281
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 1 option
- widget_latest-posts-widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 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
7 plugin tags: widget, recent posts, latest posts widget, posts, posts widget...
latest-posts-widget/latest-posts.php 92% from 13 tests
The entry point to "Latest Posts Widget" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("latest-posts-widget.php" instead of "latest-posts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin231 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 49 | 43 | 189 |
CSS | 1 | 1 | 4 | 42 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin