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.06MB] [CPU: ▼14.28ms] Passed 4 tests
Server-side resources used by WP Confirm
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.40 ▲1.51 |
Dashboard /wp-admin | 3.36 ▲0.01 | 50.43 ▼18.14 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.97 ▼5.29 |
Add New Post /wp-admin/post-new.php | 5.51 ▼0.37 | 83.20 ▼26.37 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.52 ▼7.31 |
WP Confirm /wp-admin/options-general.php?page=wp-confirm | 3.24 | 32.34 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
wp_confirm_option_name |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Confirm
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲124 | 13.37 ▼0.90 | 8.59 ▲6.33 | 42.68 ▼0.34 |
Dashboard /wp-admin | 2,208 ▲28 | 5.64 ▲0.06 | 95.90 ▲2.68 | 41.48 ▼0.10 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 2.02 ▲0.08 | 35.97 ▼2.78 | 33.28 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 18.32 ▼4.98 | 657.38 ▼43.50 | 79.27 ▲19.91 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.21 ▲0.07 | 107.60 ▲2.86 | 43.94 ▼2.21 |
WP Confirm /wp-admin/options-general.php?page=wp-confirm | 815 | 2.03 | 25.80 | 32.69 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- wp_confirm_option_name
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp-confirm
- > Notice in wp-content/plugins/wp-confirm/admin/class-wp-confirm-admin.php+250
Undefined index: enable_confirm_on_permalink_save_2
SRP 0% 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 output text when accessed directly:
- > /wp-content/plugins/wp-confirm/trunk/admin/partials/wp-confirm-admin-display.php
- > /wp-content/plugins/wp-confirm/admin/partials/wp-confirm-admin-display.php
- > /wp-content/plugins/wp-confirm/public/partials/wp-confirm-public-display.php
- > /wp-content/plugins/wp-confirm/trunk/public/partials/wp-confirm-public-display.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-confirm/admin/class-wp-confirm-admin.php:229
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-confirm/trunk/admin/class-wp-confirm-admin.php:229
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Requires php: Invalid version format
wp-confirm/wp-confirm.php Passed 13 tests
The main file in "WP Confirm" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Adds a confirm dialog on saving post, menu and permalinks
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin301 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 157 | 553 | 295 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 4 | 6.25% |
▷ Public methods | 54 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 15.62% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin