Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼139.68ms] Passed 4 tests
A check of server-side resources used by Weart Category Posts Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 32.49 ▼2.20 |
Dashboard /wp-admin | 3.11 ▲0.05 | 46.77 ▲1.21 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 63.50 ▲18.81 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 89.57 ▼554.86 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 32.24 ▼2.88 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_weart_featured_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Weart Category Posts Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲109 | 16.01 ▲0.32 | 13.17 ▲1.73 | 49.15 ▲0.45 |
Dashboard /wp-admin | 2,970 ▲36 | 5.88 ▼0.09 | 167.47 ▲11.40 | 129.59 ▲24.67 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.02 | 80.36 ▲9.02 | 92.30 ▲8.04 |
Add New Post /wp-admin/post-new.php | 1,672 ▼1,905 | 18.81 ▲3.79 | 391.22 ▼86.15 | 106.12 ▲2.57 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.05 ▲0.04 | 154.40 ▲2.55 | 117.51 ▲5.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_weart_featured_widget
Smoke tests 50% from 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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/weart-category-posts-widget/weart-category-posts-widget.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/weart-category-posts-widget/inc/widget.php:2
- > 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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #3 in weart-category-posts-widget/assets to your readme.txt
weart-category-posts-widget/weart-category-posts-widget.php Passed 13 tests
"Weart Category Posts Widget" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
78 characters long description:
Display the latest posts with the most beautiful way from the picked category.
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
Success! There were no dangerous files found in this plugin381 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 26 | 54 | 209 |
Sass | 1 | 10 | 22 | 71 |
CSS | 1 | 1 | 8 | 59 |
PO File | 1 | 13 | 13 | 42 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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 | 3 | |
▷ Global constants | 3 | 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
PNG images were not found in this plugin