Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.70ms] Passed 4 tests
A check of server-side resources used by Custom Post Types Listing Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.53 ▼4.63 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.80 ▲2.02 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 43.80 ▼5.05 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 83.76 ▼2.86 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.14 ▲1.74 |
Server storage [IO: ▲2.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Custom Post Types Listing Block: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 13.28 ▼1.08 | 1.70 ▼0.14 | 43.33 ▼0.46 |
Dashboard /wp-admin | 2,208 ▲37 | 5.88 ▲0.93 | 105.73 ▲2.57 | 40.49 ▼9.22 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.01 ▼0.01 | 36.35 ▼2.64 | 32.04 ▼0.98 |
Add New Post /wp-admin/post-new.php | 6,365 ▲4,851 | 22.58 ▲5.18 | 881.22 ▲212.07 | 57.16 ▼4.59 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.22 ▼0.02 | 95.14 ▼4.11 | 39.95 ▼4.39 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 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 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-posttype-listing-block/src/blog-listing-data.php:257
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-posttype-listing-block/blog-listing.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Design Panel), #2 (Content Panel), #3 (Pagination Panel), #4 (Number Pagination), #5 (Old/New Pagination)
custom-posttype-listing-block/blog-listing.php 85% from 13 tests
The main PHP script in "Custom Post Types Listing Block" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("custom-posttype-listing-block.php" instead of "blog-listing.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin41,445 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 39,414 |
JavaScript | 4 | 122 | 241 | 1,607 |
PHP | 3 | 15 | 21 | 251 |
CSS | 2 | 20 | 8 | 86 |
Sass | 2 | 21 | 0 | 85 |
Markdown | 1 | 0 | 0 | 2 |
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.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin