Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/acpt-lite/src/Includes/ACPT_Lite_DB.php+181
Undefined property: WP_Post_Type::$custom_rewrite
Server metrics [RAM: ▲1.10MB] [CPU: ▼296.03ms] Passed 4 tests
An overview of server-side resources used by Custom post types for Wordpress – ACPT Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.90 ▲1.39 | 69.31 ▲19.69 |
Dashboard /wp-admin | 4.77 ▲1.37 | 44.98 ▲10.48 |
Posts /wp-admin/edit.php | 4.98 ▲1.34 | 51.00 ▲10.73 |
Add New Post /wp-admin/post-new.php | 7.29 ▲0.32 | 77.77 ▼1,213.72 |
Media Library /wp-admin/upload.php | 4.73 ▲1.43 | 40.64 ▲8.38 |
ACPT Lite /wp-admin/admin.php?page=advanced-custom-post-type-lite | 4.66 | 34.97 |
Server storage [IO: ▲5.05MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 362 new files
Database: 13 new tables, no new options
New tables |
---|
acpt_custom_post_type_field |
acpt_taxonomy |
acpt_settings |
acpt_taxonomy_pivot |
acpt_custom_post_type_relation |
acpt_custom_post_type_import |
acpt_woocommerce_product_data |
acpt_custom_post_type |
acpt_woocommerce_product_data_field |
acpt_custom_post_template |
... |
Browser metrics Passed 4 tests
Custom post types for Wordpress – ACPT Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,872 ▲130 | 15.85 ▲0.15 | 5.66 ▼0.05 | 2.06 ▼0.10 |
Dashboard /wp-admin | 2,984 ▲123 | 6.10 ▼0.07 | 116.31 ▼20.15 | 166.94 ▲9.67 |
Posts /wp-admin/edit.php | 2,751 ▲57 | 3.25 ▲0.02 | 68.42 ▲5.74 | 145.71 ▲8.04 |
Add New Post /wp-admin/post-new.php | 1,843 ▲91 | 23.15 ▲1.34 | 427.54 ▲3.97 | 167.10 ▲12.18 |
Media Library /wp-admin/upload.php | 1,790 ▲95 | 5.51 ▼0.02 | 122.81 ▼13.58 | 199.13 ▲7.64 |
Register post type /wp-admin/admin.php?page=advanced-custom-post-type-lite#/register | 1,892 | 6.95 | 210.67 | 169.64 |
ACPT Lite /wp-admin/admin.php?page=advanced-custom-post-type-lite | 1,408 | 5.99 | 220.21 | 144.69 |
Settings /wp-admin/admin.php?page=advanced-custom-post-type-lite#/settings | 1,222 | 5.78 | 112.53 | 134.23 |
Registered taxonomies /wp-admin/admin.php?page=advanced-custom-post-type-lite#/taxonomies | 1,324 | 6.44 | 101.83 | 145.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+307
Non-static method ACPT_Lite::deactivate() should not be called statically
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/acpt-lite/admin/templates/app.php
- 26× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Models\\AbstractModel' not found in wp-content/plugins/acpt-lite/src/Core/Models/CustomPostTypeModel.php:13
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Models\\AbstractModel' not found in wp-content/plugins/acpt-lite/src/Core/Models/SettingsModel.php:13
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Shortcodes\\Fields\\AbstractField' not found in wp-content/plugins/acpt-lite/src/Core/Shortcodes/Fields/TextField.php:5
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Generators\\Fields\\AbstractField' not found in wp-content/plugins/acpt-lite/src/Core/Generators/Fields/SelectField.php:7
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Shortcodes\\Fields\\AbstractField' not found in wp-content/plugins/acpt-lite/src/Core/Shortcodes/Fields/SelectField.php:5
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Models\\AbstractModel' not found in wp-content/plugins/acpt-lite/src/Core/Models/WooCommerceProductDataModel.php:15
- > PHP Fatal error
Trait 'Webmozart\\Assert\\Mixin' not found in wp-content/plugins/acpt-lite/vendor/webmozart/assert/src/Assert.php on line 33
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Generators\\Fields\\AbstractField' not found in wp-content/plugins/acpt-lite/src/Core/Generators/Fields/EmailField.php:7
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Base_Data_Control' not found in wp-content/plugins/acpt-lite/src/Core/Generators/Elementor/Controls/ShortcodeControl.php:5
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Models\\AbstractModel' not found in wp-content/plugins/acpt-lite/src/Core/Models/FileImportModel.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=advanced-custom-post-type-lite
- > Intervention (severe) in unknown
/wp-admin/admin.php?page=advanced-custom-post-type-lite#/register - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Screenshot #7 (Elementor integration) image required
acpt-lite/advanced-custom-post-type-lite.php 77% from 13 tests
The main file in "Custom post types for Wordpress – ACPT Lite" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/advanced-custom-post-type")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acpt-lite.php" instead of "advanced-custom-post-type-lite.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin31,616 lines of code in 283 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 79 | 2,337 | 7,281 | 12,270 |
HTML | 32 | 398 | 493 | 5,444 |
JavaScript | 72 | 1,185 | 2,414 | 5,018 |
CSS | 15 | 701 | 97 | 4,006 |
Handlebars | 45 | 507 | 94 | 2,236 |
JSON | 12 | 3 | 0 | 1,006 |
Sass | 17 | 400 | 991 | 830 |
Markdown | 6 | 261 | 0 | 671 |
YAML | 2 | 33 | 1 | 101 |
XML | 2 | 1 | 0 | 29 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 21.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 227.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 65 | |
▷ Abstract classes | 5 | 7.69% |
▷ Concrete classes | 60 | 92.31% |
▷ Final classes | 1 | 1.67% |
Methods | 902 | |
▷ Static methods | 493 | 54.66% |
▷ Public methods | 802 | 88.91% |
▷ Protected methods | 27 | 2.99% |
▷ Private methods | 73 | 8.09% |
Functions | 34 | |
▷ Named functions | 25 | 73.53% |
▷ Anonymous functions | 9 | 26.47% |
Constants | 36 | |
▷ Global constants | 2 | 5.56% |
▷ Class constants | 34 | 94.44% |
▷ Public constants | 34 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
35 PNG files occupy 1.44MB with 1.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor/owl.carousel/docs_src/assets/img/feature-drag.png | 8.18KB | 2.08KB | ▼ 74.56% |
assets/vendor/owl.carousel/docs_src/assets/img/feature-responsive.png | 7.36KB | 2.08KB | ▼ 71.75% |
assets/vendor/owl.carousel/docs/assets/img/bird_blue_32.png | 1.32KB | 0.33KB | ▼ 75.15% |
assets/vendor/owl.carousel/docs_src/assets/img/owl-logo.png | 13.38KB | 4.10KB | ▼ 69.35% |
assets/vendor/owl.carousel/docs/assets/img/feature-zombie.png | 9.44KB | 2.73KB | ▼ 71.10% |