Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.11MB] [CPU: ▼16.28ms] Passed 4 tests
This is a short check of server-side resources used by Custom post type templates for Elementor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.63 | 16.84 ▼25.93 |
Dashboard /wp-admin | 3.37 ▲0.06 | 51.56 ▼3.66 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 44.12 ▼5.68 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 83.32 ▼29.85 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 37.02 ▲0.77 |
Custom post pages /wp-admin/admin.php?page=miga-custom-posts-detailpage | 3.31 | 43.75 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
miga_custom_posts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Custom post type templates for Elementor: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,452 ▼309 | 14.17 ▼0.21 | 0.64 ▼1.30 | 21.13 ▼21.98 |
Dashboard /wp-admin | 2,205 ▲28 | 5.63 ▲0.03 | 90.56 ▼0.86 | 39.94 ▼2.52 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 2.05 ▲0.04 | 34.36 ▼5.22 | 30.73 ▼5.70 |
Add New Post /wp-admin/post-new.php | 1,533 ▲2 | 21.91 ▼1.46 | 683.54 ▲13.75 | 71.69 ▼0.34 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.18 ▼0.13 | 99.84 ▲1.28 | 46.25 ▲0.98 |
Custom post pages /wp-admin/admin.php?page=miga-custom-posts-detailpage | 847 | 2.02 | 27.58 | 26.53 |
Uninstaller [IO: ▲0.00MB] [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
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- miga_custom_posts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-post-type-templates-for-elementor/widgets/PostList_error_message.php:3
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/custom-post-type-templates-for-elementor/widgets/PostImage.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-post-type-templates-for-elementor/miga_custom_posts.php:82
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-post-type-templates-for-elementor/widgets/PostList_filter.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-post-type-templates-for-elementor/widgets/PostList_image.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-post-type-templates-for-elementor/widgets/PostList_styles.php:2
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/custom-post-type-templates-for-elementor/widgets/PostContent.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-post-type-templates-for-elementor/widgets/PostList_tags.php:3
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/custom-post-type-templates-for-elementor/widgets/PostsList.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-post-type-templates-for-elementor/widgets/PostList_show_details.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 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
8 plugin tags: elementor, elements, elementor addons, templates, addons...
custom-post-type-templates-for-elementor/miga_custom_posts.php 69% from 13 tests
"Custom post type templates for Elementor" version 1.10.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("custom-post-type-templates-for-elementor.php" instead of "miga_custom_posts.php")
- Text Domain: Please use dashes and lowercase characters for text domains
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.2")
- Description: The description should be shorter than 140 characters (currently 207 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,125 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 234 | 42 | 1,771 |
JavaScript | 2 | 28 | 4 | 148 |
CSS | 2 | 16 | 0 | 113 |
PO File | 1 | 37 | 41 | 93 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 68.42% |
▷ Protected methods | 12 | 31.58% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 14 | 87.50% |
▷ Anonymous functions | 2 | 12.50% |
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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/placeholder.png | 5.52KB | 2.20KB | ▼ 60.13% |