Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.03ms] Passed 4 tests
Analyzing server-side resources used by Wenprise Better Emails
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 43.25 ▲0.56 |
Dashboard /wp-admin | 3.40 ▲0.05 | 50.90 ▼12.84 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 51.31 ▼1.31 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.18 ▼14.52 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 39.41 ▲3.99 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 103 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Wenprise Better Emails
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲39 | 14.25 ▼0.12 | 1.75 ▲0.18 | 45.32 ▼7.13 |
Dashboard /wp-admin | 2,198 ▲18 | 5.58 ▼0.09 | 95.98 ▲5.90 | 41.91 ▼2.09 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▲0.01 | 36.85 ▲1.49 | 32.86 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.64 ▲0.16 | 657.16 ▼58.58 | 52.68 ▼2.60 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▼0.05 | 107.92 ▲1.40 | 47.59 ▲2.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 65× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\ParserInterface' not found in wp-content/plugins/wenprise-better-emails/vendor/symfony/css-selector/Parser/Shortcut/HashParser.php:29
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Tests\ode\\AbstractNodeTest' not found in wp-content/plugins/wenprise-better-emails/vendor/symfony/css-selector/Tests/Node/AttributeNodeTest.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_specialchars_decode() in wp-content/plugins/wenprise-better-emails/templates/admin/comment.php:3
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/wenprise-better-emails/vendor/symfony/css-selector/XPath/Extension/CombinationExtension.php:26
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Tests\ode\\AbstractNodeTest' not found in wp-content/plugins/wenprise-better-emails/vendor/symfony/css-selector/Tests/Node/NegationNodeTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wenprise-better-emails/vendor/symfony/css-selector/Tests/Parser/Shortcut/ClassParserTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wenprise-better-emails/vendor/symfony/css-selector/Tests/CssSelectorConverterTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wenprise-better-emails/vendor/symfony/css-selector/Tests/Parser/Shortcut/HashParserTest.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\XPath\\TranslatorInterface' not found in wp-content/plugins/wenprise-better-emails/vendor/symfony/css-selector/XPath/Translator.php:31
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/wenprise-better-emails/vendor/symfony/css-selector/Node/AttributeNode.php:24
- > 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 important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wenprise-better-emails ===
)
wenprise-better-emails/wenprise-better-emails.php Passed 13 tests
"Wenprise Better Emails" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
92 characters long description:
使用 HTML 邮件,美化 WordPress 评论审核通知邮件,评论回复通知邮件。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected5,299 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 95 | 1,106 | 2,597 | 4,543 |
HTML | 2 | 0 | 0 | 356 |
CSS | 1 | 39 | 45 | 214 |
JSON | 1 | 0 | 0 | 145 |
Markdown | 2 | 6 | 0 | 30 |
XML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 78 | |
▷ Abstract classes | 4 | 5.13% |
▷ Concrete classes | 74 | 94.87% |
▷ Final classes | 2 | 2.70% |
Methods | 387 | |
▷ Static methods | 11 | 2.84% |
▷ Public methods | 361 | 93.28% |
▷ Protected methods | 12 | 3.10% |
▷ Private methods | 14 | 3.62% |
Functions | 22 | |
▷ Named functions | 8 | 36.36% |
▷ Anonymous functions | 14 | 63.64% |
Constants | 14 | |
▷ Global constants | 1 | 7.14% |
▷ Class constants | 13 | 92.86% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin