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.02MB] [CPU: ▼143.54ms] Passed 4 tests
This is a short check of server-side resources used by Recent Posts by Category Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 32.34 ▲1.86 |
Dashboard /wp-admin | 3.08 ▲0.03 | 41.66 ▼2.80 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 41.56 ▲2.12 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 86.19 ▼565.14 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 29.74 ▼8.08 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_rpjc_widget_cat_recent_posts |
Browser metrics Passed 4 tests
Checking browser requirements for Recent Posts by Category Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.85 ▲0.33 | 7.96 ▼0.63 | 48.06 ▲1.85 |
Dashboard /wp-admin | 2,973 ▲36 | 5.88 ▼0.05 | 128.54 ▼10.91 | 108.85 ▲5.93 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 64.31 ▼6.01 | 80.18 ▼25.63 |
Add New Post /wp-admin/post-new.php | 1,672 ▲2 | 18.89 ▼0.23 | 377.14 ▲4.57 | 105.93 ▲0.43 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.00 | 152.21 ▼15.41 | 112.74 ▼7.98 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_rpjc_widget_cat_recent_posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recent-posts-by-category-widget/recent-posts-by-category-widget.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (The widget UI) image not found
recent-posts-by-category-widget/recent-posts-by-category-widget.php Passed 13 tests
"Recent Posts by Category Widget" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
94 characters long description:
Just like the default Recent Posts widget except you can choose a category to pull posts from.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin90 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 13 | 90 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 17.44KB | 7.22KB | ▼ 58.61% |