Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/letter-template/wn-letter-template.php+522
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▼1.75MB] [CPU: ▼54.70ms] Passed 4 tests
Server-side resources used by Letter Template
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.25 ▼1.21 | 4.65 ▼34.90 |
Dashboard /wp-admin | 2.27 ▼1.08 | 10.61 ▼46.93 |
Posts /wp-admin/edit.php | 2.28 ▼1.08 | 6.19 ▼45.01 |
Add New Post /wp-admin/post-new.php | 2.27 ▼3.62 | 6.08 ▼91.96 |
Media Library /wp-admin/upload.php | 2.27 ▼0.96 | 5.84 ▼25.80 |
All Businesses /wp-admin/edit.php?post_type=wnlt_business | 2.28 | 6.75 |
Add New /wp-admin/post-new.php?post_type=wnlt_business | 2.28 | 7.03 |
Letter Template /wp-admin/options-general.php?page=wnlt-setting | 2.28 | 6.35 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
widget_wnlt |
db_upgraded |
Browser metrics Passed 4 tests
Letter Template: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲201 | 13.96 ▼0.71 | 7.82 ▲5.79 | 43.72 ▼4.27 |
Dashboard /wp-admin | 2,257 ▲69 | 5.25 ▼0.65 | 111.63 ▲13.24 | 40.26 ▼1.65 |
Posts /wp-admin/edit.php | 2,146 ▲51 | 2.37 ▲0.40 | 38.77 ▼5.90 | 33.48 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,585 ▲52 | 18.40 ▼4.92 | 635.05 ▼14.50 | 35.64 ▼35.30 |
Media Library /wp-admin/upload.php | 1,448 ▲60 | 4.42 ▲0.23 | 98.90 ▼5.01 | 44.12 ▼0.37 |
All Businesses /wp-admin/edit.php?post_type=wnlt_business | 1,134 | 2.36 | 35.26 | 27.97 |
Add New /wp-admin/post-new.php?post_type=wnlt_business | 1,497 | 2.80 | 51.69 | 31.43 |
Letter Template /wp-admin/options-general.php?page=wnlt-setting | 1,033 | 1.95 | 30.58 | 39.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/letter-template/wn-letter-template.php+522
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_wnlt
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wnlt-setting
- > Warning in wp-content/plugins/letter-template/wn-letter-template.php+531
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wnlt-setting
- > Notice in wp-content/plugins/letter-template/wn-letter-template.php+196
Trying to access array offset on value of type bool
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 errors when accessed directly:
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/letter-template/wn-letter-template.php on line 531
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/letter-template/wn-letter-template.php:799
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/letter-template/wn-letter-template-widget.php:3
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/letter-template/wn-letter-template.php on line 522
- > PHP Warning
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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: template, claim, prefill, visitor input, cancellation...
letter-template/wn-letter-template.php 92% from 13 tests
The main PHP file in "Letter Template" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("letter-template.php" instead of "wn-letter-template.php")
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
There were no executable files found in this plugin1,730 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 102 | 27 | 842 |
PHP | 2 | 149 | 111 | 629 |
JavaScript | 6 | 35 | 25 | 259 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin