Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.27MB] [CPU: ▼304.61ms] Passed 4 tests
Analyzing server-side resources used by CP Support
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.13 | 55.54 ▲1.98 |
Dashboard /wp-admin | 3.34 ▼0.07 | 22.82 ▼11.67 |
Posts /wp-admin/edit.php | 3.39 ▼0.24 | 23.87 ▼13.42 |
Add New Post /wp-admin/post-new.php | 6.13 ▼0.84 | 79.30 ▼1,188.91 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 18.56 ▼4.42 |
Statuses /wp-admin/edit-tags.php?taxonomy=cp_ticket_status&post_type=cp_ticket | 3.34 | 20.81 |
Add New /wp-admin/post-new.php?post_type=cp_ticket | 3.75 | 55.42 |
Ticket Types /wp-admin/edit-tags.php?taxonomy=cp_ticket_types&post_type=cp_ticket | 3.34 | 20.74 |
Product /wp-admin/edit-tags.php?taxonomy=cp_support_product&post_type=cp_ticket | 3.34 | 21.41 |
Tickets /wp-admin/edit.php?post_type=cp_ticket | 3.43 | 25.00 |
Server storage [IO: ▲0.05MB] [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: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for CP Support
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,841 ▲99 | 15.85 ▲0.17 | 6.30 ▲0.06 | 2.05 ▼0.07 |
Dashboard /wp-admin | 2,941 ▲90 | 6.12 ▼0.01 | 126.21 ▼9.63 | 182.65 ▲22.33 |
Posts /wp-admin/edit.php | 2,741 ▲84 | 3.36 ▼0.01 | 62.84 ▼2.35 | 143.51 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,703 ▲42 | 18.50 ▲2.43 | 407.45 ▼32.24 | 154.21 ▲5.52 |
Media Library /wp-admin/upload.php | 1,748 ▲50 | 5.55 ▼0.03 | 121.91 ▼10.58 | 200.28 ▲16.09 |
Statuses /wp-admin/edit-tags.php?taxonomy=cp_ticket_status&post_type=cp_ticket | 1,746 | 2.84 | 54.67 | 113.08 |
Add New /wp-admin/post-new.php?post_type=cp_ticket | 3,800 | 10.29 | 197.16 | 250.03 |
Ticket Types /wp-admin/edit-tags.php?taxonomy=cp_ticket_types&post_type=cp_ticket | 1,670 | 2.81 | 54.51 | 103.51 |
Product /wp-admin/edit-tags.php?taxonomy=cp_support_product&post_type=cp_ticket | 1,692 | 2.82 | 53.61 | 113.46 |
Tickets /wp-admin/edit.php?post_type=cp_ticket | 1,491 | 3.22 | 59.92 | 116.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
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
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=cp_support_product&post_type=cp_ticket
- > Notice in wp-content/plugins/cp-support/post_types.php+64
Undefined index: post_type
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
Almost there! Just fix the following items
- 5× 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/cp-support/cpcustomfields.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cp-support/post_types.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cp-support/cpshortcodes.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cp-support/taxonomies.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cp-support/cpsupport.php:14
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== cp-support ===
)
cp-support/cpsupport.php 92% from 13 tests
The entry point to "CP Support" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cp-support.php" instead of "cpsupport.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin441 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 31 | 102 | 386 |
Markdown | 1 | 28 | 0 | 55 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 0 | |
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 | 13 | |
▷ Named functions | 13 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ticketicon.png | 3.51KB | 0.78KB | ▼ 77.70% |
images/ticketicon16.png | 3.11KB | 0.28KB | ▼ 90.85% |
images/ticketicon32.png | 3.29KB | 0.47KB | ▼ 85.73% |