Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.92ms] Passed 4 tests
Server-side resources used by WP LetterPot
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.27 ▼39.92 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.27 ▼48.84 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.12 ▼36.62 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.75 ▼98.28 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.19 ▼33.64 |
WP LetterPot /wp-admin/admin.php?page=wpletterpot | 2.05 | 5.68 |
使い方 /wp-admin/admin.php?page=wpletterpot-howto | 2.05 | 5.48 |
制作者 /wp-admin/admin.php?page=wpletterpot-developer | 2.05 | 6.02 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP LetterPot
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲60 | 13.15 ▼1.23 | 1.68 ▼0.41 | 43.59 ▲0.71 |
Dashboard /wp-admin | 2,240 ▲52 | 5.88 ▲1.01 | 101.38 ▼9.54 | 46.93 ▲7.87 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.06 ▲0.05 | 36.63 ▼5.68 | 35.42 ▼4.91 |
Add New Post /wp-admin/post-new.php | 1,558 ▲39 | 23.01 ▼0.37 | 632.15 ▲1.28 | 48.74 ▼8.23 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.20 ▲0.00 | 94.02 ▼7.76 | 46.89 ▲2.30 |
WP LetterPot /wp-admin/admin.php?page=wpletterpot | 846 | 1.76 | 27.54 | 65.51 |
使い方 /wp-admin/admin.php?page=wpletterpot-howto | 817 | 1.76 | 26.63 | 46.34 |
制作者 /wp-admin/admin.php?page=wpletterpot-developer | 915 | 1.72 | 24.82 | 72.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% 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)
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpletterpot-developer
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpletterpot
- > Notice in wp-content/plugins/wp-letterpot/templates/admin_setting.php+54
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpletterpot-developer
- > Warning in wp-content/plugins/wp-letterpot/wp-letterpot.php+146
DOMDocument::loadHTML(): Tag header invalid in Entity, line: 55
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpletterpot-developer
- > Warning in wp-content/plugins/wp-letterpot/wp-letterpot.php+146
DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 214
- > GET request to /wp-admin/admin.php?page=wpletterpot-developer
- > Warning in wp-content/plugins/wp-letterpot/wp-letterpot.php+146
DOMDocument::loadHTML(): Tag footer invalid in Entity, line: 230
- > GET request to /wp-admin/admin.php?page=wpletterpot-developer
- > Warning in wp-content/plugins/wp-letterpot/wp-letterpot.php+146
DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 232
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpletterpot-developer
- > Warning in wp-content/plugins/wp-letterpot/wp-letterpot.php+146
DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 208
- > GET request to /wp-admin/admin.php?page=wpletterpot-developer
- > Warning in wp-content/plugins/wp-letterpot/wp-letterpot.php+146
DOMDocument::loadHTML(): Tag footer invalid in Entity, line: 224
- > GET request to /wp-admin/admin.php?page=wpletterpot-developer
- > Warning in wp-content/plugins/wp-letterpot/wp-letterpot.php+146
DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 226
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
Please take a closer look at the following
- 6× 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/wp-letterpot/wp-letterpot.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_LetterPot' not found in wp-content/plugins/wp-letterpot/templates/admin_developer.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-letterpot/templates/letterpot.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-letterpot/templates/admin_setting.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-letterpot/templates/admin_howto.php:3
- > PHP Notice
Undefined variable: atts in wp-content/plugins/wp-letterpot/templates/letterpot.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Requires at least: Invalid version format
wp-letterpot/wp-letterpot.php Passed 13 tests
The entry point to "WP LetterPot" version 1.0.1 is a PHP file that has certain tags in its header comment area
36 characters long description:
LetterPotのプラグインです。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin7,794 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 38 | 309 | 1,082 | 6,953 |
PHP | 5 | 37 | 35 | 309 |
CSS | 4 | 32 | 1 | 305 |
Sass | 5 | 48 | 7 | 210 |
Markdown | 1 | 3 | 0 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.56% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/image1.png | 91.07KB | 36.08KB | ▼ 60.38% |
assets/images/propic.png | 5.86KB | 2.99KB | ▼ 48.87% |
assets/images/letterpot.png | 4.92KB | 2.04KB | ▼ 58.47% |