Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼1.48ms] Passed 4 tests
An overview of server-side resources used by Flex Posts - Widget and Gutenberg Block
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 42.18 ▼2.34 |
Dashboard /wp-admin | 3.49 ▲0.19 | 51.09 ▼4.08 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 49.78 ▲1.78 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 97.54 ▼1.28 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 41.82 ▲5.20 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_flex-posts-list |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Flex Posts - Widget and Gutenberg Block
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.67 ▼1.01 | 4.60 ▲2.80 | 42.06 ▼0.22 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼1.04 | 103.95 ▼4.51 | 39.95 ▼3.29 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▲0.02 | 37.86 ▲0.14 | 33.47 ▲0.23 |
Add New Post /wp-admin/post-new.php | 6,190 ▲4,676 | 19.19 ▲1.77 | 933.96 ▲266.91 | 62.11 ▼0.14 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.15 ▼0.07 | 100.21 ▼4.04 | 45.94 ▲1.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_flex-posts-list
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: magazine, tiles, latest posts, flexbox, category posts...
flex-posts/flex-posts.php Passed 13 tests
The main PHP file in "Flex Posts - Widget and Gutenberg Block" ver. 1.9.0 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
A widget to display posts with thumbnails in various layouts for any widget area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,190 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 258 | 327 | 1,382 |
JavaScript | 2 | 25 | 1 | 587 |
CSS | 3 | 44 | 3 | 221 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 27.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 5.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 1 | 9.09% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/default.png | 0.43KB | 0.10KB | ▼ 75.57% |