Benchmarks
Plugin footprint 65% 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: ▲1.23MB] [CPU: ▲7.90ms] Passed 4 tests
A check of server-side resources used by Custom post types for Wordpress – ACPT Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.92 ▲1.47 | 58.06 ▲19.33 |
Dashboard /wp-admin | 4.83 ▲1.53 | 64.08 ▲19.67 |
Posts /wp-admin/edit.php | 4.85 ▲1.49 | 74.21 ▲9.89 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 75.47 ▼17.28 |
Media Library /wp-admin/upload.php | 4.76 ▲1.54 | 56.22 ▲24.03 |
Custom Post Types /wp-admin/admin.php?page=advanced-custom-post-type-lite | 4.61 | 50.34 |
Server storage [IO: ▲7.62MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 456 new files
Database: 17 new tables, 6 new options
New tables |
---|
wp_acpt_lite_custom_post_type |
wp_acpt_lite_taxonomy_meta_box |
wp_acpt_lite_woocommerce_product_data_option |
wp_acpt_lite_custom_post_type_option |
wp_acpt_lite_user_field_option |
wp_acpt_lite_woocommerce_product_data |
wp_acpt_lite_custom_post_type_meta_box |
wp_acpt_lite_taxonomy |
wp_acpt_lite_user_meta_box |
wp_acpt_lite_custom_post_type_import |
... |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom post types for Wordpress – ACPT Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲133 | 13.27 ▼1.29 | 1.73 ▼0.07 | 40.55 ▼7.08 |
Dashboard /wp-admin | 2,259 ▲68 | 5.83 ▲0.95 | 108.76 ▲6.65 | 73.93 ▲35.05 |
Posts /wp-admin/edit.php | 2,157 ▲68 | 1.99 ▲0.02 | 39.01 ▼13.44 | 38.60 ▼7.52 |
Add New Post /wp-admin/post-new.php | 6,498 ▲4,965 | 20.98 ▼2.40 | 883.22 ▲209.84 | 36.77 ▼20.56 |
Media Library /wp-admin/upload.php | 1,459 ▲71 | 4.24 ▲0.04 | 119.32 ▲21.15 | 46.15 ▼0.48 |
Custom Post Types /wp-admin/admin.php?page=advanced-custom-post-type-lite | 1,164 | 4.29 | 149.93 | 105.22 |
Taxonomies /wp-admin/admin.php?page=advanced-custom-post-type-lite#/taxonomies | 1,106 | 4.10 | 118.20 | 45.00 |
User meta /wp-admin/admin.php?page=advanced-custom-post-type-lite#/user-meta | 1,043 | 3.85 | 62.34 | 34.86 |
Settings /wp-admin/admin.php?page=advanced-custom-post-type-lite#/settings | 1,110 | 4.98 | 80.55 | 43.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 17 tables in the database
- wp_acpt_lite_custom_post_type_meta_box
- wp_acpt_lite_user_meta_box
- wp_acpt_lite_user_field_option
- wp_acpt_lite_settings
- wp_acpt_lite_taxonomy_pivot
- wp_acpt_lite_woocommerce_product_data_field
- wp_acpt_lite_woocommerce_product_data_option
- wp_acpt_lite_custom_post_type
- wp_acpt_lite_custom_post_type_import
- wp_acpt_lite_taxonomy_meta_box
- ...
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
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
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
The following issues need your attention
- 43× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Generators\\UserFields\\AbstractField' not found in wp-content/plugins/acpt-lite/src/Core/Generators/UserFields/EmailField.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\\Abstracts\\AbstractModel' not found in wp-content/plugins/acpt-lite/src/Core/Models/MetaField/MetaBoxFieldOptionModel.php:16
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Models\\Abstracts\\AbstractModel' not found in wp-content/plugins/acpt-lite/src/Core/Models/Taxonomy/TaxonomyModel.php:17
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Generators\\UserFields\\AbstractField' not found in wp-content/plugins/acpt-lite/src/Core/Generators/UserFields/SelectField.php:8
- > 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\\CustomPostTypeFields\\AbstractField' not found in wp-content/plugins/acpt-lite/src/Core/Generators/CustomPostTypeFields/EmailField.php:7
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Models\\Abstracts\\AbstractMetaBoxModel' not found in wp-content/plugins/acpt-lite/src/Core/Models/User/UserMetaBoxModel.php:16
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Generators\\TaxonomyFields\\AbstractTaxonomyField' not found in wp-content/plugins/acpt-lite/src/Core/Generators/TaxonomyFields/EmailField.php:8
- > PHP Fatal error
Uncaught Error: Class 'ACPT_Lite\\Core\\Models\\Abstracts\\AbstractModel' not found in wp-content/plugins/acpt-lite/src/Core/Models/CustomPostType/CustomPostTypeModel.php:19
- > 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 90% 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
5 plugin tags: custom post types, taxonomies, taxonomy, custom post type, meta box
acpt-lite/advanced-custom-post-type-lite.php 77% from 13 tests
The entry point to "Custom post types for Wordpress – ACPT Lite" version 1.0.17 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/advanced-custom-post-type-lite")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- 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")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin46,466 lines of code in 342 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 97 | 4,702 | 4,388 | 18,486 |
PHP | 106 | 2,737 | 7,641 | 13,490 |
HTML | 32 | 398 | 493 | 5,444 |
CSS | 20 | 733 | 104 | 4,138 |
Handlebars | 45 | 507 | 94 | 2,236 |
JSON | 12 | 3 | 0 | 1,006 |
Sass | 17 | 400 | 991 | 830 |
Markdown | 7 | 275 | 0 | 697 |
YAML | 2 | 33 | 1 | 101 |
XML | 2 | 1 | 0 | 29 |
SVG | 1 | 0 | 0 | 5 |
Bourne Shell | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 16.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 227.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 3 | |
Traits | 1 | |
Classes | 90 | |
▷ Abstract classes | 11 | 12.22% |
▷ Concrete classes | 79 | 87.78% |
▷ Final classes | 1 | 1.27% |
Methods | 972 | |
▷ Static methods | 521 | 53.60% |
▷ Public methods | 839 | 86.32% |
▷ Protected methods | 42 | 4.32% |
▷ Private methods | 91 | 9.36% |
Functions | 37 | |
▷ Named functions | 26 | 70.27% |
▷ Anonymous functions | 11 | 29.73% |
Constants | 38 | |
▷ Global constants | 2 | 5.26% |
▷ Class constants | 36 | 94.74% |
▷ Public constants | 36 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
44 PNG files occupy 2.55MB with 1.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor/owl.carousel/docs/assets/img/bird_blue_32.png | 1.32KB | 0.33KB | ▼ 75.15% |
assets/static/css/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
screenshot-4.png | 184.34KB | 67.98KB | ▼ 63.12% |
assets/screenshot-3.png | 108.82KB | 41.62KB | ▼ 61.76% |
assets/vendor/owl.carousel/docs/assets/img/feature-zombie.png | 9.44KB | 2.73KB | ▼ 71.10% |