Benchmarks
Plugin footprint 40% 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
- This plugin did not install gracefully
- > Notice in wp-content/plugins/custom-template-creator/Base/Admin/AbstractAdminController.php+31
Undefined index: page
Server metrics [RAM: ▼1.86MB] [CPU: ▼58.11ms] Passed 4 tests
An overview of server-side resources used by Custom Template Creator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.33 | 6.48 ▼33.85 |
Dashboard /wp-admin | 2.16 ▼1.19 | 6.90 ▼57.90 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 8.09 ▼38.46 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 5.74 ▼102.22 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 6.31 ▼29.67 |
Custom Templates /wp-admin/edit.php?post_type=page&page=customtemplates | 3.20 | 24.89 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Template Creator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.30 ▼0.96 | 1.84 ▲0.09 | 42.84 ▲3.54 |
Dashboard /wp-admin | 2,204 ▲18 | 5.83 ▲0.87 | 102.51 ▼18.66 | 35.67 ▼9.44 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▲0.05 | 40.37 ▲1.32 | 35.70 ▲3.05 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 22.99 ▲4.60 | 584.71 ▼44.37 | 47.50 ▲1.12 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.04 | 95.68 ▲3.22 | 43.09 ▼1.19 |
Custom Templates /wp-admin/edit.php?post_type=page&page=customtemplates | 856 | 1.80 | 30.17 | 26.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/custom-template-creator/Base/Admin/AbstractAdminController.php+31
Undefined index: page
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=page&page=customtemplates
- > Notice in wp-content/plugins/custom-template-creator/Base/Admin/AbstractAdminController.php+55
Undefined index: action
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/custom-template-creator/templates/mytemplate1.php
- > /wp-content/plugins/custom-template-creator/templates/mytemplate3.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/custom-template-creator/Views/TemplateList.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-template-creator/templates/mytemplate2.php:3
- > PHP Fatal error
Uncaught Error: Class 'TemplateCreator\\Base\\AbstractController' not found in wp-content/plugins/custom-template-creator/Controllers/TemplateController.php:7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-template-creator/Views/TemplateList.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'TemplateCreator\\Base\\Admin\\AbstractAdminController' not found in wp-content/plugins/custom-template-creator/Controllers/TemplateAdminController.php:9
- > PHP Fatal error
Uncaught Error: Class 'TemplateCreator\\Base\\AbstractController' not found in wp-content/plugins/custom-template-creator/Base/Admin/AbstractAdminController.php:6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-template-creator/Views/TemplateList.php on line 7
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=page&page=customtemplates
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).wpColorPicker is not a function" "TypeError: $(...).wpColorPicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/custom-template-creator/Base/Admin/js/admin.js?ver=6.3.1:140:31)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit.php?post_type=page&page=customtemplates
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).wpColorPicker is not a function
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Template Editor), #2 (Select Template), #3 (Template overview)
custom-template-creator/TemplateCreator.php 77% from 13 tests
The entry point to "Custom Template Creator" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Main file name: The principal plugin file should be the same as the plugin slug ("custom-template-creator.php" instead of "TemplateCreator.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,169 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 20 | 62 | 598 |
CSS | 2 | 44 | 152 | 433 |
JavaScript | 1 | 18 | 8 | 138 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 8.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 2 | 22.22% |
▷ Concrete classes | 7 | 77.78% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 8 | 16.67% |
▷ Public methods | 30 | 62.50% |
▷ Protected methods | 16 | 33.33% |
▷ Private methods | 2 | 4.17% |
Functions | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin