Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.90ms] Passed 4 tests
Server-side resources used by List Custom Post with featured image
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 31.96 ▼9.41 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.41 ▼5.29 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.34 ▼3.97 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 82.64 ▼8.93 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.47 ▲3.15 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
List Custom Post with featured image: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.66 ▲0.47 | 1.62 ▼0.12 | 39.71 ▼8.54 |
Dashboard /wp-admin | 2,192 ▲18 | 5.54 ▲0.01 | 87.09 ▼14.61 | 41.23 ▼8.25 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.07 | 34.60 ▼2.41 | 31.53 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.16 ▲0.16 | 630.29 ▼37.35 | 51.33 ▼7.18 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.40 ▲0.21 | 104.58 ▼5.79 | 46.21 ▼5.41 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/list-custom-post-with-featured-image/list-cp-featured-image.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Gallery page in the front-end.), #2 (Showing shortcode on plugin section back-end.), #3 (Using shortcode on back-end & same as its working with phpcode using do_shortcode().)
list-custom-post-with-featured-image/list-cp-featured-image.php 92% from 13 tests
"List Custom Post with featured image" version 1.1'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:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("list-custom-post-with-featured-image.php" instead of "list-cp-featured-image.php")
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
Good job! No executable or dangerous file extensions detected108 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 24 | 17 | 99 |
CSS | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 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
4 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/default-placeholder.png | 16.06KB | 8.22KB | ▼ 48.84% |
screenshot-1.png | 76.94KB | 21.71KB | ▼ 71.78% |
screenshot-2.png | 19.46KB | 7.09KB | ▼ 63.55% |
screenshot-3.png | 21.88KB | 7.81KB | ▼ 64.32% |