Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.96MB] [CPU: ▼56.33ms] Passed 4 tests
Analyzing server-side resources used by Custom Content Types by Pixelpillow
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.66 ▼36.71 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.14 ▼49.37 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.50 ▼42.49 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.22 ▼96.75 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.57 ▼30.06 |
Content types /wp-admin/edit-tags.php?taxonomy=content_type_post | 2.05 | 5.12 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Content Types by Pixelpillow
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲111 | 13.63 ▼0.74 | 1.67 ▼0.20 | 44.08 ▲1.00 |
Dashboard /wp-admin | 2,252 ▲67 | 5.88 ▲1.03 | 108.78 ▲3.27 | 38.57 ▼5.31 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.02 ▲0.01 | 35.53 ▼3.12 | 31.19 ▼3.66 |
Add New Post /wp-admin/post-new.php | 6,218 ▲4,676 | 18.99 ▲0.57 | 911.66 ▲271.30 | 59.56 ▲12.91 |
Media Library /wp-admin/upload.php | 1,396 ▲17 | 4.21 ▼0.16 | 96.08 ▼6.51 | 41.37 ▼3.03 |
Content types /wp-admin/edit-tags.php?taxonomy=content_type_post | 1,295 | 2.50 | 35.95 | 35.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the the_tooltip handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/edit-tags.php?taxonomy=content_type_post
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the the_tooltip handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/edit-tags.php?taxonomy=content_type_post
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the the_tooltip handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-content-types-by-pixelpillow/ajax-methods.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-content-types-by-pixelpillow/ajax-methods.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-content-types-by-pixelpillow/taxonomy-settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-content-types-by-pixelpillow/dashboard-widget.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== custom-content-types-by-pixelpillow ===
)
custom-content-types-by-pixelpillow/pixelpillow-custom-content-types.php 85% from 13 tests
The main PHP script in "Custom Content Types by Pixelpillow" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-content-types-by-pixelpillow.php" instead of "pixelpillow-custom-content-types.php")
- Description: Keep the plugin description shorter than 140 characters (currently 179 characters long)
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
There were no executable files found in this plugin1,019 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 1 | 4 | 405 |
PHP | 4 | 131 | 30 | 378 |
LESS | 1 | 32 | 4 | 128 |
JavaScript | 4 | 18 | 5 | 62 |
PO File | 1 | 17 | 20 | 46 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 14.75 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 29 | 87.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.12% |
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
15 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/content-types/event.png | 2.53KB | 1.34KB | ▼ 47.05% |
images/content-types/presentation.png | 2.92KB | 1.95KB | ▼ 33.32% |
images/add.png | 0.72KB | 0.75KB | 0.00% |
images/content-types/audio.png | 3.72KB | 2.34KB | ▼ 37.03% |
images/content-types/quote.png | 2.18KB | 0.67KB | ▼ 69.18% |