Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.19MB] [CPU: ▼47.26ms] Passed 4 tests
Analyzing server-side resources used by Checkout Page - Custom checkouts that boost your sales
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▼0.67 | 16.45 ▼27.07 |
Dashboard /wp-admin | 2.83 ▼0.51 | 18.01 ▼44.68 |
Posts /wp-admin/edit.php | 2.84 ▼0.52 | 17.07 ▼29.98 |
Add New Post /wp-admin/post-new.php | 2.83 ▼3.05 | 16.70 ▼87.30 |
Media Library /wp-admin/upload.php | 2.84 ▼0.39 | 14.72 ▼21.42 |
Checkout Page /wp-admin/options-general.php?page=checkoutpage | 2.84 | 16.54 |
Server storage [IO: ▲1.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Checkout Page - Custom checkouts that boost your sales
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.46 | 1.71 ▼0.04 | 44.13 ▲3.16 |
Dashboard /wp-admin | 2,202 ▲22 | 5.58 ▼0.08 | 85.78 ▼0.80 | 37.80 ▼3.75 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▲0.00 | 33.93 ▼1.50 | 34.18 ▼3.63 |
Add New Post /wp-admin/post-new.php | 6,369 ▲4,841 | 28.14 ▲5.02 | 876.99 ▲170.11 | 36.61 ▼25.36 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.15 ▼0.03 | 96.03 ▼5.72 | 45.20 ▲0.11 |
Checkout Page /wp-admin/options-general.php?page=checkoutpage | 932 | 2.10 | 21.94 | 35.83 |
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
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/checkoutpage/checkoutpage.php+136
include_once(src/includes/render-checkout-embed.php): failed to open stream: No such file or directory
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=checkoutpage
- > Warning in wp-content/plugins/checkoutpage/checkoutpage.php+136
include_once(src/includes/render-checkout-embed.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/options-general.php?page=checkoutpage
- > Warning in wp-content/plugins/checkoutpage/checkoutpage.php+136
include_once(): Failed opening 'src/includes/render-checkout-embed.php' for inclusion (include_path='.:/usr/share/php')
- > GET request to /wp-admin/options-general.php?page=checkoutpage
- > User notice in wp-includes/functions.php+5905
Function WP_Block_Type_Registry::register was called incorrectly. Block type names must contain a namespace prefix. Example: my-plugin/my-custom-block-type Please see Debugging in WordPress for more information. (This message was added in version 5.0.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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/checkoutpage/src/includes/render-checkout-button.php:53
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=checkoutpage
- > Network (severe)
wp-content/plugins/checkoutpage/src/views/admin-screenshot-3.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=checkoutpage
- > Network (severe)
wp-content/plugins/checkoutpage/src/views/admin-screenshot-4.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #5, #6 in checkoutpage/assets to your readme.txt
checkoutpage/checkoutpage.php 85% from 13 tests
"Checkout Page - Custom checkouts that boost your sales" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.4" instead of "5.8")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 211 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin611 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 61 | 85 | 229 |
JavaScript | 7 | 27 | 3 | 201 |
CSS | 2 | 17 | 0 | 94 |
JSON | 2 | 0 | 0 | 51 |
Sass | 1 | 4 | 0 | 28 |
SVG | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 3 | 23.08% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 1.27MB with 0.66MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/views/admin-screenshot-1.png | 381.24KB | 207.82KB | ▼ 45.49% |
src/views/admin-screenshot-2.png | 917.06KB | 379.78KB | ▼ 58.59% |