Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.26MB] [CPU: ▲11.48ms] Passed 4 tests
This is a short check of server-side resources used by Post Custom Templates Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.72 ▲2.26 | 59.86 ▲22.39 |
Dashboard /wp-admin | 5.61 ▲2.31 | 59.76 ▲9.42 |
Posts /wp-admin/edit.php | 5.69 ▲2.33 | 64.47 ▲17.08 |
Add New Post /wp-admin/post-new.php | 8.02 ▲2.13 | 98.27 ▼2.97 |
Media Library /wp-admin/upload.php | 5.62 ▲2.39 | 62.85 ▲28.18 |
otwfcr /wp-admin/admin.php?page=otwfcr | 5.59 | 46.91 |
Single Posts Templates /wp-admin/admin.php?page=otw-pctl | 5.60 | 46.54 |
License Manager /wp-admin/admin.php?page=otw-pctl-lm | 5.60 | 292.34 |
Edit Single Posts Templates /wp-admin/admin.php?page=otw-pctl-default-templates-edit | 5.62 | 50.08 |
Action Single Posts Templates /wp-admin/admin.php?page=otw-pctl-custom-templates-action | 5.60 | 49.86 |
Add Template /wp-admin/admin.php?page=otw-pctl-custom-templates-add | 5.62 | 53.84 |
Options /wp-admin/admin.php?page=otw-pctl-settings | 5.62 | 57.92 |
Edit Single Posts Templates /wp-admin/admin.php?page=otw-pctl-custom-templates-edit | 5.62 | 53.58 |
Server storage [IO: ▲8.26MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Illegal file modification detected: 2 files (0.14KB) outside of "wp-content/plugins/post-custom-templates-lite/" and "wp-content/uploads/"
- (new file) wp-admin/otw_pct_ct_1.css
- (new file) wp-admin/otw_pct_ct_2.css
Filesystem: 264 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
otw_mb_custom_templates |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Post Custom Templates Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.62 ▲0.27 | 2.38 ▲0.74 | 35.76 ▼3.18 |
Dashboard /wp-admin | 2,242 ▲62 | 5.80 ▲0.13 | 94.58 ▲8.11 | 82.05 ▲41.99 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 2.38 ▲0.37 | 39.92 ▼0.22 | 36.79 ▲2.27 |
Add New Post /wp-admin/post-new.php | 1,740 ▲190 | 22.92 ▲4.75 | 648.55 ▲29.14 | 56.66 ▼17.33 |
Media Library /wp-admin/upload.php | 1,447 ▲50 | 4.51 ▲0.36 | 110.57 ▲12.92 | 91.05 ▲46.09 |
otwfcr /wp-admin/admin.php?page=otwfcr | 820 | 1.92 | 24.88 | 25.16 |
Single Posts Templates /wp-admin/admin.php?page=otw-pctl | 926 | 2.03 | 25.47 | 36.97 |
License Manager /wp-admin/admin.php?page=otw-pctl-lm | 964 | 1.80 | 26.93 | 27.39 |
Edit Single Posts Templates /wp-admin/admin.php?page=otw-pctl-default-templates-edit | 1,019 | 3.41 | 51.61 | 66.10 |
Action Single Posts Templates /wp-admin/admin.php?page=otw-pctl-custom-templates-action | 876 | 1.81 | 25.37 | 25.46 |
Add Template /wp-admin/admin.php?page=otw-pctl-custom-templates-add | 1,827 | 3.80 | 45.88 | 83.34 |
Options /wp-admin/admin.php?page=otw-pctl-settings | 1,190 | 3.37 | 46.30 | 86.48 |
Edit Single Posts Templates /wp-admin/admin.php?page=otw-pctl-custom-templates-edit | 1,788 | 3.72 | 44.86 | 69.49 |
Uninstaller [IO: ▲0.46MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- otw_mb_custom_templates
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=otw-pctl-default-templates-edit
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'otw_pctl_default_templates_edit' not found or invalid function name
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=otw-pctl-settings
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/post-custom-templates-lite/include/otw_components/otw_factory/views/action_message.php
- > /wp-content/plugins/post-custom-templates-lite/include/otw_components/otw_post_template_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- 57× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'OTW_Post_Template_Shortcodes' not found in wp-content/plugins/post-custom-templates-lite/include/otw_components/otw_post_template_shortcode/shortcodes/otw_shortcode_breadcrumbs.class.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/post-custom-templates-lite/include/otw_components/otw_content_sidebars_light/views/content_sidebars_metabox.php:1
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/post-custom-templates-lite/include/otw_components/otw_content_sidebars_light/otw_content_sidebars.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/post-custom-templates-lite/include/otw_components/otw_factory/otw_factory.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Post_Template_Shortcodes' not found in wp-content/plugins/post-custom-templates-lite/include/otw_components/otw_post_template_shortcode/shortcodes/otw_shortcode_post_item_media.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/post-custom-templates-lite/include/otw_labels/otw_pctl_shortcode_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/post-custom-templates-lite/include/otw_labels/otw_pctl_factory_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/post-custom-templates-lite/include/views/components/title.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/post-custom-templates-lite/include/views/components/item_media.php on line 2
- > PHP Notice
Undefined variable: post in wp-content/plugins/post-custom-templates-lite/include/views/components/item_media.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Custom template example 1), #2 (Custom template example 2), #3 (Custom template example 3), #4 (Custom template example 4), #5 (Custom template example 5), #6 (Custom template example 6), #7 (Custom template example 7), #8 (Custom template example 8), #9 (Ready template - Post Simple), #10 (Admin area - Create a templte - Template Builder), #11 (Admin area - Create a templte - Adding sidebars to your template), #12 (Admin area - Create a templte - Meta Drag & Drop), #13 (Admin area - Create a templte - Template Options), #14 (Admin area - Change template)
post-custom-templates-lite/otw_post_custom_templates_lite.php 92% from 13 tests
The main file in "Post Custom Templates Lite" v. 1.14 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:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-custom-templates-lite.php" instead of "otw_post_custom_templates_lite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin29,795 lines of code in 119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 25 | 1,222 | 422 | 12,764 |
PHP | 66 | 3,006 | 1,450 | 9,970 |
SVG | 6 | 0 | 0 | 3,793 |
JavaScript | 22 | 1,060 | 101 | 3,268 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 56.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 200.00 |
Average method complexity | 5.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 97.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 296 | |
▷ Static methods | 17 | 5.74% |
▷ Public methods | 245 | 82.77% |
▷ Protected methods | 28 | 9.46% |
▷ Private methods | 23 | 7.77% |
Functions | 72 | |
▷ Named functions | 72 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
91 compressed PNG files occupy 1.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-10.png | 60.53KB | 27.56KB | ▼ 54.46% |
include/otw_components/otw_post_template_grid_manager_light/img/gm-clone.png | 0.21KB | 0.24KB | 0.00% |
include/otw_components/otw_post_template_shortcode/images-shortcodes/patterns/dimension.png | 0.54KB | 0.57KB | 0.00% |
include/otw_components/otw_post_template_shortcode/images-shortcodes/icons/flatified/file.png | 1.65KB | 1.36KB | ▼ 17.50% |
include/otw_components/otw_post_template_shortcode/images/pattern-1.png | 0.08KB | 0.09KB | 0.00% |