Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.68ms] Passed 4 tests
Analyzing server-side resources used by Casper's Leave Notice
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.66 ▼3.30 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.41 ▼4.65 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.76 ▼2.82 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 94.15 ▲0.06 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 38.88 ▲1.25 |
External Links /wp-admin/options-general.php?page=cpleavenotice | 3.31 | 40.83 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 9 new options
New WordPress options |
---|
cpln_exclusions |
cpln_other_settings |
cpln_content_settings |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Casper's Leave Notice: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲176 | 13.48 ▼0.87 | 10.90 ▲9.12 | 43.18 ▲0.82 |
Dashboard /wp-admin | 2,199 ▲19 | 5.52 ▼0.13 | 90.95 ▲0.56 | 40.04 ▼5.28 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.01 ▼0.03 | 35.54 ▼11.69 | 35.58 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.98 ▼0.43 | 697.05 ▲51.24 | 57.30 ▲5.64 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.24 ▲0.06 | 97.80 ▼18.83 | 44.92 ▼2.48 |
External Links /wp-admin/options-general.php?page=cpleavenotice | 1,559 | 6.72 | 154.48 | 66.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/caspers-leave-notice/functions/scripts-and-support.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/caspers-leave-notice/functions/admin/admin-page.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/caspers-leave-notice/functions/options.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/caspers-leave-notice/caspers-leave-notice.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== caspers-leave-notice ===
)
caspers-leave-notice/caspers-leave-notice.php Passed 13 tests
The primary PHP file in "Casper's Leave Notice" version 1.2.3 is used by WordPress to initiate all plugin functionality
117 characters long description:
Warns your users when they are leaving your site. You can edit the content of the warning, as well as add exceptions.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected466 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 49 | 59 | 312 |
CSS | 1 | 1 | 0 | 79 |
JavaScript | 1 | 9 | 12 | 75 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 20 | |
▷ Named functions | 20 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected