Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼9.66ms] Passed 4 tests
An overview of server-side resources used by Comments by Hyvor Talk
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 36.05 ▼7.86 |
Dashboard /wp-admin | 3.39 ▲0.04 | 48.10 ▼17.41 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.23 ▼0.58 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.10 | 82.53 ▼12.77 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 36.25 ▲0.51 |
All Comments /wp-admin/edit-comments.php | 3.38 | 39.23 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Comments by Hyvor Talk: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,788 ▲42 | 14.72 ▲0.19 | 1.96 ▲0.31 | 42.22 ▼1.91 |
Dashboard /wp-admin | 2,180 ▲3 | 5.54 ▼0.03 | 81.96 ▼6.70 | 39.78 ▼3.02 |
Posts /wp-admin/edit.php | 2,088 ▼9 | 1.99 ▼0.02 | 36.21 ▲0.53 | 33.09 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 18.37 ▼4.83 | 620.52 ▼44.41 | 60.16 ▲0.06 |
Media Library /wp-admin/upload.php | 1,388 ▼6 | 4.17 ▼0.08 | 96.33 ▲0.32 | 41.62 ▼1.30 |
All Comments /wp-admin/edit-comments.php | 1,794 | 2.28 | 38.85 | 34.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/hyvor-talk/html/v3-component.php:35
- > PHP Notice
Undefined index: HYVOR_TALK_PLUGIN_WEBSITE_ID in wp-content/plugins/hyvor-talk/html/variables.php on line 12
- > PHP Notice
Undefined index: HYVOR_TALK_PLUGIN_WEBSITE_ID in wp-content/plugins/hyvor-talk/html/variables.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/hyvor-talk/html/variables.php:38
- > PHP Notice
Undefined index: HYVOR_TALK_PLUGIN_WEBSITE_ID in wp-content/plugins/hyvor-talk/html/variables.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/hyvor-talk/html/variables.php:38
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/hyvor-talk/html/admin.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/hyvor-talk/html/embed.php on line 14
- > PHP Notice
Undefined index: HYVOR_TALK_PLUGIN_WEBSITE_ID in wp-content/plugins/hyvor-talk/html/v3-component.php on line 3
- > PHP Notice
Undefined index: HYVOR_TALK_PLUGIN_JS_CONFIG in wp-content/plugins/hyvor-talk/html/embed.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: commenting plugin, commenting system, comments, commenting platform
hyvor-talk/hyvor-talk.php 92% from 13 tests
The main PHP script in "Comments by Hyvor Talk" version 1.2.12 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected666 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 249 | 313 | 543 |
CSS | 1 | 8 | 0 | 83 |
JavaScript | 1 | 16 | 8 | 39 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 13.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 8 | 21.62% |
▷ Public methods | 33 | 89.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 10.81% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 5 | 55.56% |
▷ Class constants | 4 | 44.44% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/talk-logo.png | 19.61KB | 9.22KB | ▼ 52.99% |