Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲5.36MB] [CPU: ▲3.53ms] 75% from 4 tests
A check of server-side resources used by Content Views - Post Grid Gutenberg Blocks and Shortcode
The following require your attention
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.36MB on /wp-admin/admin.php?page=content-views-setting)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.85 ▲5.39 | 42.01 ▲1.04 |
Dashboard /wp-admin | 8.68 ▲5.37 | 50.31 ▼0.94 |
Posts /wp-admin/edit.php | 8.73 ▲5.37 | 53.22 ▲10.12 |
Add New Post /wp-admin/post-new.php | 13.44 ▲7.56 | 110.05 ▲16.34 |
Media Library /wp-admin/upload.php | 8.54 ▲5.31 | 36.84 ▲3.89 |
Layout Library /wp-admin/admin.php?page=content-views-blocklibrary | 8.58 | 44.11 |
Add New /wp-admin/admin.php?page=content-views-add | 9.01 | 48.74 |
All Views /wp-admin/edit.php?post_type=pt_view | 8.64 | 37.99 |
Dashboard /wp-admin/admin.php?page=content-views | 8.56 | 33.84 |
Settings /wp-admin/admin.php?page=content-views-setting | 8.55 | 42.95 |
Server storage [IO: ▲1.74MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 156 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
pt_cv_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Content Views - Post Grid Gutenberg Blocks and Shortcode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲184 | 13.48 ▼0.87 | 9.32 ▲7.59 | 28.76 ▼16.73 |
Dashboard /wp-admin | 2,236 ▲56 | 5.59 ▼0.01 | 89.74 ▼9.67 | 41.71 ▼4.68 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.02 ▲0.01 | 40.45 ▲3.54 | 36.62 ▲1.89 |
Add New Post /wp-admin/post-new.php | 6,245 ▲4,715 | 20.99 ▼1.91 | 1,026.27 ▲385.36 | 60.88 ▲9.62 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.21 ▼0.09 | 98.53 ▼2.11 | 43.41 ▲0.33 |
Layout Library /wp-admin/admin.php?page=content-views-blocklibrary | 2,066 | 11.92 | 271.29 | 143.02 |
Add New /wp-admin/admin.php?page=content-views-add | 4,113 | 12.24 | 160.26 | 142.72 |
All Views /wp-admin/edit.php?post_type=pt_view | 1,118 | 1.92 | 30.19 | 33.51 |
Dashboard /wp-admin/admin.php?page=content-views | 2,131 | 16.06 | 473.30 | 69.28 |
Settings /wp-admin/admin.php?page=content-views-setting | 1,094 | 2.46 | 39.12 | 38.80 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/grid1\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/list1\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/pinterest\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/collapsible\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/scrollable\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/timeline\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/onebig1\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/onebig2\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/overlay1\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/overlay2\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/overlay3\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/overlay4\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/overlay5\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/overlay6\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/overlay7\" is registered with an invalid category \"contentviews-blocks\".
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=content-views-add
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"contentviews/overlay8\" is registered with an invalid category \"contentviews-blocks\".
- > GET request to /wp-admin/admin.php?page=content-views
- > Other (warning) in unknown
/wp-admin/admin.php?page=content-views 253 Unrecognized feature: 'web-share'.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
content-views-query-and-display-post-page/content-views.php 85% from 13 tests
The main PHP script in "Content Views - Post Grid Gutenberg Blocks and Shortcode" version 3.6.1.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("content-views-query-and-display-post-page.php" instead of "content-views.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 224 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected11,820 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 1,670 | 2,119 | 8,829 |
CSS | 12 | 248 | 113 | 1,933 |
JavaScript | 10 | 104 | 219 | 768 |
SVG | 62 | 0 | 0 | 290 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 32.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 389 | |
▷ Static methods | 310 | 79.69% |
▷ Public methods | 384 | 98.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 1.29% |
Functions | 37 | |
▷ Named functions | 35 | 94.59% |
▷ Anonymous functions | 2 | 5.41% |
Constants | 22 | |
▷ Global constants | 22 | 100.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
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/sale.png | 6.45KB | 6.74KB | 0.00% |
admin/assets/images/icon1.png | 1.60KB | 0.90KB | ▼ 43.96% |
admin/assets/images/icon.png | 2.14KB | 1.99KB | ▼ 7.16% |
public/assets/images/default_image.png | 0.91KB | 0.89KB | ▼ 3.10% |
assets/select2/select2.png | 0.60KB | 0.99KB | 0.00% |