Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.06ms] Passed 4 tests
Analyzing server-side resources used by Any Posts Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 34.76 ▼6.16 |
Dashboard /wp-admin | 3.35 ▼0.00 | 44.41 ▼14.71 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.99 ▼2.39 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.01 ▼4.96 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.24 ▼0.08 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_any-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Any Posts Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.21 ▼1.38 | 1.77 ▼0.16 | 37.30 ▼8.67 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼1.05 | 94.92 ▼13.30 | 38.62 ▼4.12 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.06 | 40.25 ▼2.57 | 35.94 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.28 ▼0.12 | 672.43 ▲20.76 | 53.12 ▼3.84 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.25 ▼0.16 | 97.77 ▼2.01 | 41.11 ▼5.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_any-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 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× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/any-posts-widget/inc/class-apw-widget.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function post_class() in wp-content/plugins/any-posts-widget/templates/loop.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget options), #2 (Example with Twenty Sixteen theme)
any-posts-widget/any-posts-widget.php Passed 13 tests
The primary PHP file in "Any Posts Widget" version 1.0.1 is used by WordPress to initiate all plugin functionality
57 characters long description:
Provides a widget allow choosing posts to display easily.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin276 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 59 | 122 | 186 |
CSS | 2 | 9 | 0 | 55 |
JavaScript | 1 | 10 | 0 | 35 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 28.02KB | 9.61KB | ▼ 65.72% |
screenshot-1.png | 18.27KB | 7.23KB | ▼ 60.43% |