Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.67MB] [CPU: ▼138.04ms] Passed 4 tests
Analyzing server-side resources used by CommentPress Core
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.75 ▲1.91 | 60.52 ▲37.15 |
Dashboard /wp-admin | 4.81 ▲1.74 | 40.49 ▲2.28 |
Posts /wp-admin/edit.php | 4.84 ▲1.73 | 38.61 ▲1.51 |
Add New Post /wp-admin/post-new.php | 6.91 ▲1.48 | 76.95 ▼562.90 |
Media Library /wp-admin/upload.php | 4.74 ▲1.74 | 31.05 ▲6.94 |
Customize /wp-admin/customize.php | 7.96 | 105.88 |
Header /wp-admin/themes.php?page=custom-header | 4.76 | 32.07 |
CommentPress Core /wp-admin/options-general.php?page=commentpress_admin | 4.70 | 28.45 |
Server storage [IO: ▲4.15MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 337 new files
Database: no new tables, 15 new options
New WordPress options |
---|
commentpress_page_comments |
widget_commentpress_text |
theme_mods_commentpress-modern |
commentpress_page_for_posts |
theme_switched |
commentpress_options |
commentpress_show_on_front |
commentpress_sidebars_widgets |
widget_recent-comments |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for CommentPress Core
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,497 ▲1,896 | 21.60 ▲6.04 | 112.33 ▲106.85 | 84.66 ▲2.12 |
Dashboard /wp-admin | 2,957 ▲61 | 6.02 ▼0.13 | 112.98 ▼29.05 | 163.78 ▼21.75 |
Posts /wp-admin/edit.php | 2,707 ▼36 | 3.37 ▲0.14 | 60.98 ▼2.34 | 130.42 ▼9.49 |
Add New Post /wp-admin/post-new.php | 2,593 ▼1,222 | 24.44 ▲5.58 | 379.08 ▼66.26 | 169.39 ▲4.05 |
Media Library /wp-admin/upload.php | 1,782 ▲30 | 5.58 ▲0.06 | 117.24 ▼28.99 | 182.24 ▼5.78 |
Customize /wp-admin/customize.php | 11,640 | 27.11 | 661.14 | 278.07 |
Header /wp-admin/themes.php?page=custom-header | 1,984 | 5.13 | 90.34 | 178.95 |
CommentPress Core /wp-admin/options-general.php?page=commentpress_admin | 1,834 | 2.56 | 52.40 | 150.85 |
Header /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&autofocus%5Bcontrol%5D=header_image | 11,640 | 26.85 | 542.34 | 236.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- theme_mods_commentpress-modern
- current_theme
- template_root
- widget_recent-posts
- widget_commentpress_text
- stylesheet_root
- widget_recent-comments
- theme_switched
Smoke tests 50% 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 0% 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 take a closer look at the following
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/commentpress-core/themes/commentpress-flat/assets/templates/comment_form.php
- > /wp-content/plugins/commentpress-core/themes/commentpress-theme/assets/templates/comments_by_para.php
- > /wp-content/plugins/commentpress-core/themes/commentpress-theme/comments.php
- > /wp-content/plugins/commentpress-core/themes/commentpress-flat/assets/templates/comments_by_para.php
- > /wp-content/plugins/commentpress-core/themes/commentpress-flat/comments.php
- > /wp-content/plugins/commentpress-core/themes/commentpress-modern/comments.php
- > /wp-content/plugins/commentpress-core/themes/commentpress-modern/assets/templates/comment_form.php
- > /wp-content/plugins/commentpress-core/themes/commentpress-theme/assets/templates/comment_form.php
- > /wp-content/plugins/commentpress-core/themes/commentpress-modern/assets/templates/comments_by_para.php
- 138× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function load_template() in wp-content/plugins/commentpress-core/themes/commentpress-flat/header-wp-activate.php:1
- > PHP Notice
Trying to get property 'nav' of non-object in wp-content/plugins/commentpress-core/themes/commentpress-flat/welcome.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function load_template() in wp-content/plugins/commentpress-core/themes/commentpress-theme/header-wp-activate.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function commentpress_is_commentable() in wp-content/plugins/commentpress-core/themes/commentpress-modern/assets/templates/activity_sidebar.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/commentpress-core/themes/commentpress-flat/assets/templates/archive_sidebar.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/commentpress-core/themes/commentpress-flat/archive.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_userdata() in wp-content/plugins/commentpress-core/themes/commentpress-theme/author.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/commentpress-core/themes/commentpress-theme/taxonomy-comment_tags.php:17
- > PHP Notice
Undefined variable: wp_version in wp-content/plugins/commentpress-core/themes/commentpress-theme/group.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_sidebar() in wp-content/plugins/commentpress-core/themes/commentpress-theme/footer-wp-activate.php:18
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: blogs, groups, commentpress, debate, groupblogs...
commentpress-core/commentpress-core.php Passed 13 tests
The main file in "CommentPress Core" v. 3.9.15 serves as a complement to information provided in readme.txt and as the entry point to the plugin
126 characters long description:
CommentPress allows readers to comment in the margins of a text. You can use it to annotate, gloss, workshop, debate and more!
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
Success! There were no dangerous files found in this plugin50,329 lines of code in 182 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 42 | 4,855 | 2,839 | 22,716 |
PHP | 98 | 13,843 | 13,347 | 15,933 |
JavaScript | 38 | 5,435 | 6,785 | 7,119 |
PO File | 4 | 1,821 | 4,795 | 4,561 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 68.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 312.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 485 | |
▷ Static methods | 10 | 2.06% |
▷ Public methods | 474 | 97.73% |
▷ Protected methods | 2 | 0.41% |
▷ Private methods | 9 | 1.86% |
Functions | 164 | |
▷ Named functions | 164 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 26 | |
▷ Global constants | 17 | 65.38% |
▷ Class constants | 9 | 34.62% |
▷ Public constants | 9 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
25 PNG files occupy 0.61MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/commentpress-theme/assets/images/texthighlighter/highlight-caret.png | 1.26KB | 0.18KB | ▼ 85.71% |
themes/commentpress-theme/assets/images/icons/information.png | 0.76KB | 0.83KB | 0.00% |
themes/commentpress-theme/assets/images/buddypress/closed.png | 0.31KB | 0.21KB | ▼ 31.11% |
themes/commentpress-flat/assets/images/buddypress/feed.png | 0.67KB | 0.70KB | 0.00% |
themes/commentpress-theme/assets/images/icons/comment_add.png | 0.52KB | 0.38KB | ▼ 25.66% |