Benchmarks
Plugin footprint 83% 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.00MB] [CPU: ▼6.06ms] Passed 4 tests
Analyzing server-side resources used by Custom Thank You Page
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.84 ▼4.44 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.81 ▲1.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.13 ▲1.53 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.24 ▼22.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.18 ▲4.82 |
Custom Thank You Page /wp-admin/admin.php?page=ctyp_panel | 3.00 | 23.39 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Custom Thank You Page: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.24 ▼1.08 | 1.75 ▼0.20 | 43.32 ▼6.11 |
Dashboard /wp-admin | 2,209 ▲21 | 4.87 ▼0.02 | 96.51 ▼14.43 | 40.63 ▼0.45 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.00 | 32.93 ▼4.11 | 34.34 ▼3.68 |
Add New Post /wp-admin/post-new.php | 1,535 ▲1 | 23.22 ▼0.12 | 648.55 ▼9.67 | 53.45 ▼0.07 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.14 ▼0.15 | 93.24 ▼10.69 | 44.66 ▼0.07 |
Custom Thank You Page /wp-admin/admin.php?page=ctyp_panel | 28 | 0.44 | 0.09 | 3.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-thank-you-page/init.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/custom-thank-you-page/core/admin/panel.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-thank-you-page/core/functions/functions.php:204
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=ctyp_panel
- > Network (severe)
wp-admin/admin.php?page=ctyp_panel - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Plugin settings.), #2 (Example of the final thank you page.)
custom-thank-you-page/init.php 85% from 13 tests
This is the main PHP file of "Custom Thank You Page" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("custom-thank-you-page.php" instead of "init.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.5.0" instead of "3.0.0")
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 detected2,313 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 1,054 | 230 | 1,377 |
CSS | 5 | 109 | 24 | 615 |
JavaScript | 50 | 148 | 77 | 216 |
PO File | 1 | 92 | 181 | 105 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 40.20 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 5.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 97.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.17% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/images/subparent.png | 0.94KB | 0.11KB | ▼ 88.00% |
screenshot-2.png | 23.30KB | 9.16KB | ▼ 60.69% |
screenshot-1.png | 40.25KB | 15.72KB | ▼ 60.94% |
core/assets/images/subparent-hover.png | 0.93KB | 0.11KB | ▼ 88.29% |
core/assets/images/icon.png | 1.13KB | 0.45KB | ▼ 60.38% |