Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.02ms] Passed 4 tests
A check of server-side resources used by Daily Posts Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 37.58 ▼5.94 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.32 ▲3.75 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 51.35 ▲0.68 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 122.34 ▲21.70 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.83 ▲1.43 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_sgi_dpw_widget |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Daily Posts Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.28 ▼1.15 | 1.72 ▼0.57 | 40.76 ▼6.90 |
Dashboard /wp-admin | 2,203 ▲15 | 4.87 ▲0.04 | 112.18 ▲0.58 | 36.91 ▼9.41 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▲0.02 | 40.68 ▼3.35 | 35.00 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.49 ▲5.72 | 613.87 ▼23.95 | 53.21 ▼0.78 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.16 ▼0.09 | 100.52 ▼1.42 | 43.61 ▼0.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_sgi_dpw_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_attachment_image_src() in wp-content/plugins/daily-posts-widget/templates/loop-dpw.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/daily-posts-widget/lib/widget-dpw.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Plugin in action on desktop and Mobile), #2 (Widget options)
daily-posts-widget/daily-posts-widget.php Passed 13 tests
The main file in "Daily Posts Widget" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Widget that will display posts per day in a nice tabbely manner
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
Good job! No executable or dangerous file extensions detected289 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 68 | 67 | 213 |
LESS | 1 | 0 | 0 | 64 |
JavaScript | 1 | 6 | 0 | 11 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 37.50% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
2 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 112.82KB | 39.00KB | ▼ 65.43% |
screenshot-2.png | 30.50KB | 14.02KB | ▼ 54.02% |