Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.09ms] Passed 4 tests
A check of server-side resources used by Templatekit Shortcode For Post And Page
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 32.78 ▼10.01 |
Dashboard /wp-admin | 3.36 ▲0.05 | 45.25 ▼4.49 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.36 ▼1.52 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 100.67 ▲7.09 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.53 ▼0.33 |
Add New /wp-admin/post-new.php?post_type=template_kit | 3.39 | 44.74 |
All Templates /wp-admin/edit.php?post_type=template_kit | 3.32 | 38.72 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Templatekit Shortcode For Post And Page: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 13.24 ▼1.39 | 4.53 ▲2.80 | 41.74 ▼6.06 |
Dashboard /wp-admin | 2,245 ▲57 | 4.84 ▼1.06 | 112.47 ▲7.80 | 39.10 ▼3.77 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.02 ▼0.01 | 41.98 ▲2.77 | 37.95 ▲3.39 |
Add New Post /wp-admin/post-new.php | 1,564 ▲27 | 23.18 ▲4.56 | 639.56 ▲32.06 | 58.78 ▼0.97 |
Media Library /wp-admin/upload.php | 1,424 ▲33 | 4.27 ▲0.06 | 96.53 ▼1.76 | 45.19 ▲1.27 |
Add New /wp-admin/post-new.php?post_type=template_kit | 2,221 | 7.75 | 168.75 | 62.51 |
All Templates /wp-admin/edit.php?post_type=template_kit | 1,094 | 1.93 | 30.29 | 29.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 4× 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/templatekit-shortcode-for-post-and-page/inc/Template_Kit_Admin.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/templatekit-shortcode-for-post-and-page/inc/Template_Kit_i18n.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/templatekit-shortcode-for-post-and-page/inc/Template_Kit_Helpers.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/templatekit-shortcode-for-post-and-page/templatekit-shortcode-for-post-and-page.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Screenshots: Screenshot #3 (Template Kit Shortcode.) image not found
templatekit-shortcode-for-post-and-page/templatekit-shortcode-for-post-and-page.php Passed 13 tests
The main PHP script in "Templatekit Shortcode For Post And Page" version 1.0.1 is automatically included on every request by WordPress
138 characters long description:
TemplateKit is a WordPress shortcode plugin. With this plugin you can make template with a shortcode and place it anywhere in the website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,666 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 697 | 899 | 2,303 |
Markdown | 2 | 83 | 0 | 218 |
JSON | 3 | 0 | 0 | 81 |
XML | 1 | 16 | 13 | 64 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 24.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 18 | 12.41% |
▷ Public methods | 108 | 74.48% |
▷ Protected methods | 6 | 4.14% |
▷ Private methods | 31 | 21.38% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected