Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.48ms] Passed 4 tests
Analyzing server-side resources used by Custom Templates
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.28 ▼1.75 |
Dashboard /wp-admin | 3.33 ▲0.03 | 52.51 ▲3.32 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.77 ▲2.34 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.87 ▼0.56 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.47 ▲1.90 |
All Items /wp-admin/edit.php?post_type=template | 3.30 | 33.94 |
Add New /wp-admin/post-new.php?post_type=template | 3.37 | 47.47 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Custom Templates: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲118 | 13.25 ▼1.06 | 4.97 ▲3.05 | 43.73 ▼4.82 |
Dashboard /wp-admin | 2,234 ▲85 | 4.84 ▼0.75 | 107.82 ▼3.86 | 38.72 ▼4.30 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.03 ▲0.02 | 39.50 ▼0.11 | 35.09 ▼3.37 |
Add New Post /wp-admin/post-new.php | 1,565 ▲51 | 18.29 ▲0.55 | 603.30 ▼59.79 | 45.76 ▼8.06 |
Media Library /wp-admin/upload.php | 1,410 ▲28 | 4.17 ▼0.03 | 98.42 ▼4.07 | 44.78 ▲2.37 |
All Items /wp-admin/edit.php?post_type=template | 1,081 | 2.01 | 31.20 | 29.00 |
Add New /wp-admin/post-new.php?post_type=template | 2,263 | 7.79 | 166.80 | 62.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Webikon\\Custom_Templates\\plugin_dir_path() in wp-content/plugins/custom-templates/custom-templates.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function Webikon\\Custom_Templates\\add_action() in wp-content/plugins/custom-templates/template-custom-post-type.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Webikon\\Custom_Templates\\add_action() in wp-content/plugins/custom-templates/template-meta-boxes.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: template, content, customize, editor, templates
custom-templates/custom-templates.php 92% from 13 tests
The entry point to "Custom Templates" version 1.2.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected216 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 53 | 55 | 216 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 5 | 33.33% |
▷ Anonymous functions | 10 | 66.67% |
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
No PNG images were found in this plugin