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: ▲1.23MB] [CPU: ▲2.32ms] Passed 4 tests
Analyzing server-side resources used by Custom Post Types and Custom Fields creator - WCK
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.61 ▲1.14 | 44.05 ▼8.68 |
Dashboard /wp-admin | 4.58 ▲1.27 | 58.88 ▲9.39 |
Posts /wp-admin/edit.php | 4.60 ▲1.24 | 61.56 ▲13.18 |
Add New Post /wp-admin/post-new.php | 7.21 ▲1.32 | 97.45 ▼3.07 |
Media Library /wp-admin/upload.php | 4.50 ▲1.27 | 46.59 ▲11.63 |
Custom Fields Creator /wp-admin/edit.php?post_type=wck-meta-box | 4.54 | 47.08 |
Post Type Creator /wp-admin/admin.php?page=cptc-page | 4.58 | 51.39 |
Swift Templates /wp-admin/admin.php?page=free-to-pro-stp | 4.50 | 41.04 |
Front End Posting /wp-admin/admin.php?page=free-to-pro-fep | 4.50 | 41.72 |
Start and Settings /wp-admin/admin.php?page=sas-page | 4.53 | 64.25 |
Taxonomy Creator /wp-admin/admin.php?page=ctc-page | 4.57 | 49.84 |
WCK Unserialized /wp-admin/admin.php?page=wck-unserialized | 4.46 | 40.00 |
Server storage [IO: ▲6.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 418 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wck_meta_boxes_ids |
can_compress_scripts |
widget_recent-posts |
wck_update_to_unserialized |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Post Types and Custom Fields creator - WCK
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 14.74 ▲0.36 | 1.64 ▼0.38 | 39.88 ▲3.39 |
Dashboard /wp-admin | 2,254 ▲69 | 5.80 ▲0.89 | 108.41 ▼3.81 | 80.67 ▲31.80 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.01 ▼0.02 | 37.24 ▼1.68 | 33.59 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,595 ▲72 | 19.16 ▼3.92 | 771.12 ▲129.39 | 39.77 ▼11.97 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.24 ▲0.09 | 97.09 ▼11.17 | 77.10 ▲33.58 |
Custom Fields Creator /wp-admin/edit.php?post_type=wck-meta-box | 1,186 | 1.98 | 36.91 | 45.54 |
Post Type Creator /wp-admin/admin.php?page=cptc-page | 1,994 | 5.19 | 93.52 | 83.31 |
Swift Templates /wp-admin/admin.php?page=free-to-pro-stp | 1,005 | 2.09 | 35.72 | 58.02 |
Front End Posting /wp-admin/admin.php?page=free-to-pro-fep | 1,030 | 2.12 | 38.84 | 46.45 |
Start and Settings /wp-admin/admin.php?page=sas-page | 1,392 | 5.16 | 89.44 | 98.71 |
Taxonomy Creator /wp-admin/admin.php?page=ctc-page | 1,852 | 5.20 | 67.90 | 89.94 |
WCK Unserialized /wp-admin/admin.php?page=wck-unserialized | 1,499 | 2.36 | 25.74 | 28.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- wck_meta_boxes_ids
- widget_theysaidso_widget
- wck_update_to_unserialized
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wck-custom-fields-and-custom-post-types-creator/wordpress-creation-kit-api/fields/heading.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wck-custom-fields-and-custom-post-types-creator/wck-template-api/wck-field-preprocess.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wck-custom-fields-and-custom-post-types-creator/languages/wck.catalog.php:1
- > PHP Notice
Undefined variable: element in wp-content/plugins/wck-custom-fields-and-custom-post-types-creator/wordpress-creation-kit-api/fields/timepicker.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wck-custom-fields-and-custom-post-types-creator/wck-ctc.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wck-custom-fields-and-custom-post-types-creator/wordpress-creation-kit-api/fields/map.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wck-custom-fields-and-custom-post-types-creator/wordpress-creation-kit-api/fields/colorpicker.php:8
- > PHP Notice
Undefined variable: details in wp-content/plugins/wck-custom-fields-and-custom-post-types-creator/wordpress-creation-kit-api/fields/upload.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wck-custom-fields-and-custom-post-types-creator/wordpress-creation-kit-api/fields/select.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wck-custom-fields-and-custom-post-types-creator/wordpress-creation-kit-api/fields/phone.php:8
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Creating custom post types and taxonomies), #2 (Creating custom fields and meta boxes), #3 (Custom Fields Creator - list of Meta boxes), #4 (Meta box with custom fields), #5 (Defined custom fields), #6 (Custom Fields Creator - Meta box arguments), #7 (Post Type Creator UI), #8 (Post Type Creator UI and listing), #9 (Taxonomy Creator UI), #10 (Taxonomy listing)
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
wck-custom-fields-and-custom-post-types-creator/wck.php 77% from 13 tests
The main file in "Custom Post Types and Custom Fields creator - WCK" v. 2.3.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("wck-custom-fields-and-custom-post-types-creator.php" instead of "wck.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 203 characters long)
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
There were no executable files found in this plugin13,165 lines of code in 353 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 1,193 | 993 | 5,287 |
JavaScript | 286 | 280 | 1,066 | 3,729 |
Markdown | 9 | 771 | 0 | 2,980 |
CSS | 24 | 175 | 78 | 1,076 |
HTML | 2 | 17 | 8 | 93 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 67.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 338.00 |
Average method complexity | 6.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 68 | |
▷ Static methods | 11 | 16.18% |
▷ Public methods | 66 | 97.06% |
▷ Protected methods | 1 | 1.47% |
▷ Private methods | 1 | 1.47% |
Functions | 140 | |
▷ Named functions | 134 | 95.71% |
▷ Anonymous functions | 6 | 4.29% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
47 PNG files occupy 1.59MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wck-logo-hobbyist.png | 56.29KB | 35.18KB | ▼ 37.50% |
wordpress-creation-kit-api/assets/js/ckeditor/plugins/magicline/images/icon-rtl.png | 0.13KB | 0.14KB | 0.00% |
wordpress-creation-kit-api/assets/js/ckeditor/skins/moono-lisa/images/lock-open.png | 0.50KB | 0.19KB | ▼ 62.82% |
images/wck-32x32.png | 1.74KB | 1.66KB | ▼ 4.76% |
wordpress-creation-kit-api/assets/js/ckeditor/plugins/wsc/icons/hidpi/spellchecker.png | 2.75KB | 1.63KB | ▼ 40.77% |