Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼142.26ms] Passed 4 tests
An overview of server-side resources used by Custom latest posts widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 34.47 ▼0.41 |
Dashboard /wp-admin | 3.10 ▲0.05 | 42.90 ▼4.51 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 43.87 ▼3.32 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 91.67 ▼560.59 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 32.01 ▼0.60 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_custom_lpw_latest_posts |
Browser metrics Passed 4 tests
A check of browser resources used by Custom latest posts widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲85 | 15.84 ▲0.39 | 8.43 ▼0.40 | 50.56 ▲0.35 |
Dashboard /wp-admin | 2,967 ▲33 | 5.87 ▼0.19 | 139.35 ▼13.85 | 113.10 ▼5.91 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 62.75 ▼5.86 | 92.08 ▼2.65 |
Add New Post /wp-admin/post-new.php | 1,500 ▼191 | 18.53 ▼0.64 | 359.57 ▼11.66 | 109.89 ▼4.86 |
Media Library /wp-admin/upload.php | 1,804 ▼3 | 5.01 ▲0.01 | 151.03 ▼4.95 | 120.26 ▲0.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_custom_lpw_latest_posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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 SRP test was a success
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
- Stable tag: Not defined
custom-latest-posts-widget/custom-latest-posts-widget.php Passed 13 tests
Analyzing the main PHP file in "Custom latest posts widget" version 1.0
64 characters long description:
Latest posts widget to display recent posts with post thumbnail.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected226 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 70 | 29 | 207 |
CSS | 1 | 3 | 1 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 9.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin