Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.21ms] Passed 4 tests
Server-side resources used by Generate Custom Template
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.54 ▲3.08 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.61 ▼2.06 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.54 ▲6.89 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.06 ▼13.04 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.78 ▲3.19 |
Author /wp-admin/admin.php?page=generate_template_plugin_author | 3.22 | 29.57 |
Listing /wp-admin/admin.php?page=generate_template_plugin_listing | 3.23 | 30.77 |
Generate Custom Template /wp-admin/admin.php?page=generate_custom_template | 3.26 | 29.69 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_gct_content |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Generate Custom Template: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.25 ▼1.42 | 4.34 ▲2.78 | 39.11 ▼1.93 |
Dashboard /wp-admin | 2,237 ▲49 | 4.87 ▼0.94 | 110.00 ▼8.72 | 41.07 ▼2.51 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 2.00 ▼0.05 | 38.78 ▲1.81 | 34.46 ▲4.10 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 23.13 ▲4.70 | 673.99 ▲29.05 | 53.63 ▼1.72 |
Media Library /wp-admin/upload.php | 1,416 ▲25 | 4.21 ▼0.00 | 94.63 ▼5.92 | 40.12 ▼3.02 |
Author /wp-admin/admin.php?page=generate_template_plugin_author | 815 | 2.06 | 23.44 | 24.78 |
Listing /wp-admin/admin.php?page=generate_template_plugin_listing | 801 | 2.06 | 24.43 | 24.01 |
Generate Custom Template /wp-admin/admin.php?page=generate_custom_template | 840 | 2.06 | 23.23 | 27.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_gct_content
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/generate-custom-template/admin/author.php
- > /wp-content/plugins/generate-custom-template/generate-custom-template.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/generate-custom-template/admin/menu.php:11
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: wordpress 521, template, custom template, theme, listing...
generate-custom-template/generate-custom-template.php Passed 13 tests
"Generate Custom Template" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
generate custom template using wordpress admin dashboard
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
No dangerous file extensions were detected259 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 47 | 33 | 259 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG images were not found in this plugin