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.10MB] [CPU: ▼2.05ms] Passed 4 tests
Analyzing server-side resources used by Flexible Posts Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.22 ▼1.30 |
Dashboard /wp-admin | 3.40 ▲0.09 | 46.91 ▼0.30 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.95 ▲1.10 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 93.08 ▼7.71 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.63 ▲2.68 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
dpe_fp_widget_ver |
widget_dpe_fp_widget |
dpe_fp_widget_db_ver |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Flexible Posts Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 13.29 ▼1.09 | 1.84 ▲0.18 | 45.39 ▲0.82 |
Dashboard /wp-admin | 2,215 ▲24 | 4.87 ▼0.01 | 97.32 ▼8.50 | 39.70 ▼2.37 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.08 ▲0.05 | 42.25 ▲7.42 | 37.46 ▲6.90 |
Add New Post /wp-admin/post-new.php | 1,523 ▼10 | 17.48 ▼5.99 | 629.24 ▲21.02 | 60.80 ▲8.82 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.24 ▲0.02 | 102.40 ▲3.51 | 44.77 ▼1.72 |
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 9 options in the database
- dpe_fp_widget_db_ver
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_dpe_fp_widget
- dpe_fp_widget_ver
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/flexible-posts-widget/views/default.php
- > /wp-content/plugins/flexible-posts-widget/views/admin.php
- > /wp-content/plugins/flexible-posts-widget/views/widget.php
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 93% 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: Screenshot #1 (In the wild: FPW displaying several posts over at http://chnl7700.mnsu.edu. Also highly customized output and theme styles.) image missing
flexible-posts-widget/flexible-posts-widget.php 92% from 13 tests
"Flexible Posts Widget" version 3.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,456 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 221 | 495 | 616 |
PO File | 5 | 207 | 237 | 512 |
Markdown | 1 | 53 | 0 | 155 |
CSS | 2 | 1 | 7 | 62 |
JavaScript | 2 | 15 | 17 | 59 |
Sass | 1 | 13 | 0 | 52 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 25.67 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 28 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.45% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
7 compressed PNG files occupy 0.22MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-7.png | 47.19KB | 45.31KB | ▼ 3.97% |
screenshot-2.png | 23.25KB | 22.22KB | ▼ 4.45% |
screenshot-6.png | 16.76KB | 15.53KB | ▼ 7.35% |
screenshot-5.png | 61.09KB | 59.51KB | ▼ 2.60% |
screenshot-1.png | 20.27KB | 19.27KB | ▼ 4.98% |