Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼295.69ms] Passed 4 tests
Analyzing server-side resources used by WP Latest Posts Widget With Thumbnails
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.04 | 53.01 ▲1.66 |
Dashboard /wp-admin | 3.44 ▲0.03 | 33.05 ▼0.86 |
Posts /wp-admin/edit.php | 3.68 ▲0.03 | 37.10 ▼0.35 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 96.68 ▼1,182.80 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 26.40 ▲1.26 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_kau-latest-post |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Latest Posts Widget With Thumbnails
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲51 | 15.89 ▲0.22 | 6.31 ▲0.64 | 2.29 ▲0.05 |
Dashboard /wp-admin | 2,892 ▲31 | 6.17 ▲0.06 | 120.30 ▼24.77 | 155.52 ▼9.65 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.24 ▲0.01 | 61.73 ▼1.51 | 140.79 ▼3.69 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 20.93 ▲4.47 | 483.50 ▲68.30 | 164.89 ▲9.20 |
Media Library /wp-admin/upload.php | 1,701 ▲9 | 5.53 ▲0.00 | 148.07 ▼1.28 | 191.60 ▼5.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_kau-latest-post
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-latest-posts-widget-with-thumbnails/classes/recent-post-widget-with-thumbnail.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: recent post widget, latest post widget, recent post widget with thumbnails, wp recent post, latest post...
wp-latest-posts-widget-with-thumbnails/kau-latest-posts-widget.php 85% from 13 tests
The primary PHP file in "WP Latest Posts Widget With Thumbnails" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-latest-posts-widget-with-thumbnails.php" instead of "kau-latest-posts-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected138 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 25 | 10 | 107 |
CSS | 1 | 5 | 0 | 31 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ 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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There are no PNG files in this plugin