Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/comments-with-hypercommentscom/comments-with-hypercommentscom.php+13
Constant WP_CONTENT_URL already defined
Server metrics [RAM: ▼1.88MB] [CPU: ▼49.57ms] Passed 4 tests
Server-side resources used by HyperComments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 4.86 ▼34.80 |
Dashboard /wp-admin | 2.13 ▼1.17 | 6.86 ▼40.74 |
Posts /wp-admin/edit.php | 2.13 ▼1.22 | 6.76 ▼42.21 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.72 ▼80.51 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 6.01 ▼27.98 |
HyperComments /wp-admin/edit-comments.php?page=hypercomments | 2.18 | 6.51 |
All Comments /wp-admin/edit-comments.php | 2.18 | 6.90 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
hc_selector |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by HyperComments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.29 ▼1.27 | 1.65 ▼0.36 | 41.05 ▼1.93 |
Dashboard /wp-admin | 2,231 ▲39 | 4.85 ▼0.08 | 110.83 ▲3.72 | 38.73 ▼4.80 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 1.98 ▼0.01 | 39.26 ▲2.68 | 36.18 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,556 ▲37 | 23.20 ▲0.19 | 592.21 ▼42.40 | 53.25 ▲2.30 |
Media Library /wp-admin/upload.php | 1,416 ▲25 | 4.26 ▲0.08 | 98.58 ▼1.57 | 43.93 ▼5.30 |
HyperComments /wp-admin/edit-comments.php?page=hypercomments | 866 | 2.23 | 30.52 | 28.62 |
All Comments /wp-admin/edit-comments.php | 1,817 | 2.31 | 37.38 | 33.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/comments-with-hypercommentscom/comments-with-hypercommentscom.php+13
Constant WP_CONTENT_URL already defined
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php
- > Notice in wp-content/plugins/comments-with-hypercommentscom/comments-with-hypercommentscom.php+13
Constant WP_CONTENT_URL already defined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- > GET request to /wp-admin/edit-comments.php?page=hypercomments
- > Notice in wp-content/plugins/comments-with-hypercommentscom/comments-with-hypercommentscom.php+214
Undefined index: hc_form_counter_sub
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/comments-with-hypercommentscom/comments-with-hypercommentscom.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/comments-with-hypercommentscom/manage.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function hc_show_script() in wp-content/plugins/comments-with-hypercommentscom/comments.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Reader selects a text fragment and click on the "Comment" button), #2 (Write a comment), #3 (The fragment will be highlighted and then becomes clickable and more attractive. Hypercomments will attract attention of new readers and commentators.)
comments-with-hypercommentscom/comments-with-hypercommentscom.php Passed 13 tests
The main PHP file in "HyperComments" ver. 0.9.6 adds more information about the plugin and also serves as the entry point for this plugin
121 characters long description:
HyperComments - New dimension of comments. Hypercomments technology allows commenting a specific word or a piece of text.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin719 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 59 | 126 | 591 |
CSS | 1 | 2 | 0 | 70 |
PO File | 1 | 33 | 50 | 58 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.26MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 199.94KB | 68.74KB | ▼ 65.62% |
screenshot-1.png | 9.41KB | 5.64KB | ▼ 40.07% |
screenshot-2.png | 60.22KB | 21.79KB | ▼ 63.82% |