Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▼4.03ms] Passed 4 tests
Server-side resources used by Display Post Types - Post Grid, post list and post sliders
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.58 | 36.02 ▼1.53 |
Dashboard /wp-admin | 3.86 ▲0.56 | 45.69 ▼5.81 |
Posts /wp-admin/edit.php | 3.91 ▲0.56 | 47.91 ▲0.37 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 81.79 ▼9.13 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 41.70 ▲8.44 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_dpt_display_post_types |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Display Post Types - Post Grid, post list and post sliders
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▼0.00 | 1.68 ▼0.05 | 41.65 ▼4.02 |
Dashboard /wp-admin | 2,192 ▲12 | 5.61 ▼0.01 | 90.84 ▼2.20 | 43.51 ▲0.92 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.01 | 37.54 ▼2.71 | 32.12 ▼2.22 |
Add New Post /wp-admin/post-new.php | 6,201 ▲4,675 | 19.10 ▼3.83 | 940.58 ▲333.29 | 40.10 ▼11.93 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.03 | 95.64 ▼10.23 | 42.09 ▼3.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- widget_dpt_display_post_types
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/display-post-types/backend/inc/class-widget.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function Display_Post_Types\\Backend\\Inc\\add_shortcode() in wp-content/plugins/display-post-types/backend/inc/class-shortcode.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function Display_Post_Types\\Backend\\Inc\\add_action() in wp-content/plugins/display-post-types/backend/inc/class-block.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: post slider, post masonry, display posts, show posts, post grid
display-post-types/display-post-types.php Passed 13 tests
The main PHP file in "Display Post Types - Post Grid, post list and post sliders" ver. 2.4.1 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Filter, sort and display post, page or any post type.
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 plugin9,495 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 804 | 949 | 4,013 |
CSS | 6 | 856 | 40 | 3,086 |
PHP | 12 | 399 | 1,092 | 2,396 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 29.27 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 129.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 31 | 30.10% |
▷ Public methods | 102 | 99.03% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.97% |
Functions | 50 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 50 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin