Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/category-posts-sidebar-widget/category-posts-sidebar-widget.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; CategoryPostsSidebarWidget has a deprecated constructor
Server metrics [RAM: ▼2.40MB] [CPU: ▼346.71ms] Passed 4 tests
Analyzing server-side resources used by Category Posts Sidebar Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.97 ▼1.55 | 4.21 ▼51.19 |
Dashboard /wp-admin | 1.99 ▼1.42 | 3.96 ▼64.15 |
Posts /wp-admin/edit.php | 1.99 ▼1.65 | 5.25 ▼32.88 |
Add New Post /wp-admin/post-new.php | 1.99 ▼4.98 | 3.98 ▼1,238.61 |
Media Library /wp-admin/upload.php | 1.99 ▼1.31 | 4.27 ▼20.50 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_categorypostssidebarwidget |
Browser metrics Passed 4 tests
A check of browser resources used by Category Posts Sidebar Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲37 | 15.38 ▼0.64 | 7.00 ▲0.70 | 2.97 ▲0.96 |
Dashboard /wp-admin | 2,881 ▲23 | 6.07 ▼0.05 | 120.51 ▼17.22 | 161.87 ▼5.32 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.24 ▲0.00 | 64.61 ▲1.51 | 145.14 ▼37.18 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 21.54 ▲4.97 | 471.90 ▲25.84 | 156.17 ▼3.82 |
Media Library /wp-admin/upload.php | 1,701 ▲6 | 5.51 ▲0.00 | 153.79 ▲3.50 | 225.62 ▲13.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/category-posts-sidebar-widget/category-posts-sidebar-widget.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; CategoryPostsSidebarWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_categorypostssidebarwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/category-posts-sidebar-widget/category-posts-sidebar-widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (25 tag instead of maximum 10)
- Requires at least: Version not formatted correctly
- Screenshots: Add images for these screenshots: #1 (Back end widget settings options - 1a.), #2 (Back end widget settings options - 1b.), #3 (Back end widget settings options - 1c.), #4 (Front end result.)
category-posts-sidebar-widget/category-posts-sidebar-widget.php 92% from 13 tests
The main PHP file in "Category Posts Sidebar Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 254 characters long)
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
Success! There were no dangerous files found in this plugin256 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 18 | 256 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.67 |
▷ 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 | 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 | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 15.49KB | 4.87KB | ▼ 68.55% |
screenshot-4.png | 20.50KB | 8.99KB | ▼ 56.18% |
screenshot-3.png | 16.52KB | 6.27KB | ▼ 62.04% |
screenshot-1.png | 20.21KB | 6.89KB | ▼ 65.91% |