Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.64MB] [CPU: ▼16.10ms] 75% from 4 tests
A check of server-side resources used by WP Post Type Template
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 677.73ms on /wp-admin/admin.php?page=cc-product-page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.23 ▼2.56 |
Dashboard /wp-admin | 3.36 ▲0.01 | 50.53 ▼6.94 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 1,370.01 ▲1,324.30 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.68 | 35.54 ▼60.16 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 36.57 ▲5.28 |
News /wp-admin/admin.php?page=wp-post-type-template/news.php | 3.27 | 990.97 |
Cybercraft Products /wp-admin/admin.php?page=cc-product-page | 3.61 | 677.73 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
WP Post Type Template: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 14.28 ▲0.00 | 1.82 ▲0.28 | 44.80 ▲3.71 |
Dashboard /wp-admin | 2,228 ▲56 | 5.62 ▲0.02 | 94.01 ▼3.88 | 43.25 ▲2.99 |
Posts /wp-admin/edit.php | 2,136 ▲39 | 2.02 ▲0.05 | 33.92 ▼0.43 | 34.75 ▼3.97 |
Add New Post /wp-admin/post-new.php | 6,269 ▲4,743 | 26.06 ▲2.48 | 921.08 ▲315.89 | 63.06 ▲11.44 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.16 ▼0.05 | 95.56 ▲1.84 | 41.86 ▼1.30 |
News /wp-admin/admin.php?page=wp-post-type-template/news.php | 792 | 2.02 | 23.72 | 22.19 |
Cybercraft Products /wp-admin/admin.php?page=cc-product-page | 1,172 | 2.00 | 25.03 | 26.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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=wp-post-type-template/news.php
- > Notice in wp-content/plugins/wp-post-type-template/news.php+104
Trying to access array offset on value of type null
- 42 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cc-product-page
- > Notice in wp-content/plugins/wp-post-type-template/cc-products-page.php+33
Trying to get property 'slug' of non-object
- 21 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cc-product-page
- > Notice in wp-content/plugins/wp-post-type-template/cc-products-page.php+31
Trying to get property 'name' of non-object
- 21 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cc-product-page
- > Notice in wp-content/plugins/wp-post-type-template/cc-products-page.php+32
Trying to get property 'short_description' of non-object
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 items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-type-template/wp-post-template.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-type-template/cc-products-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-type-template/news.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("")
- Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-post-type-template/wp-post-template.php 92% from 13 tests
The main PHP script in "WP Post Type Template" version 1.0.3.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-post-type-template.php" instead of "wp-post-template.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
Good job! No executable or dangerous file extensions detected293 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 52 | 25 | 291 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 4 | 20.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin