Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▲0.04ms] Passed 4 tests
A check of server-side resources used by Elevated Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 46.95 ▲3.89 |
Dashboard /wp-admin | 3.53 ▲0.23 | 50.57 ▼5.03 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 48.76 ▼2.13 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 5,091.04 ▲4,986.16 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 40.58 ▲3.43 |
Elevated Comments /wp-admin/options-general.php?page=elevated-comments | 3.36 | 36.43 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/elevated-comments/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
elevated-comments |
Browser metrics Passed 4 tests
Elevated Comments: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲35 | 13.22 ▼1.25 | 2.16 ▼0.03 | 42.92 ▼3.38 |
Dashboard /wp-admin | 2,225 ▲25 | 4.85 ▼0.23 | 100.60 ▼18.89 | 41.93 ▼2.35 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.05 ▼0.01 | 39.75 ▲1.27 | 37.32 ▲0.42 |
Add New Post /wp-admin/post-new.php | 1,558 ▲26 | 18.09 ▼5.16 | 651.71 ▲33.59 | 51.70 ▼0.28 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.25 ▲0.04 | 103.15 ▲1.15 | 46.31 ▲2.56 |
Elevated Comments /wp-admin/options-general.php?page=elevated-comments | 800 | 2.02 | 27.82 | 28.51 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- elevated-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/elevated-comments/commentiq.php:14
- > PHP Fatal error
Uncaught Error: Interface 'CommentIQ_EventManagement_SubscriberInterface' not found in wp-content/plugins/elevated-comments/src/CommentIQ/Subscriber/AutomatedElevatedCommentSubscriber.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_user_by() in wp-content/plugins/elevated-comments/assets/templates/elevated-comment.php:11
- > PHP Fatal error
Uncaught Error: Interface 'CommentIQ_EventManagement_SubscriberInterface' not found in wp-content/plugins/elevated-comments/src/CommentIQ/Subscriber/AssetsSubscriber.php:17
- > PHP Fatal error
Uncaught Error: Interface 'CommentIQ_Shortcode_ShortcodeInterface' not found in wp-content/plugins/elevated-comments/src/CommentIQ/Shortcode/ElevatedCommentShortcode.php:18
- > PHP Fatal error
Uncaught Error: Interface 'CommentIQ_EventManagement_SubscriberInterface' not found in wp-content/plugins/elevated-comments/src/CommentIQ/Subscriber/PostmaticAssetsSubscriber.php:17
- > PHP Notice
Trying to get property 'user_id' of non-object in wp-content/plugins/elevated-comments/assets/templates/elevated-comment.php on line 10
- > PHP Notice
Undefined variable: comment in wp-content/plugins/elevated-comments/assets/templates/elevated-comment.php on line 10
- > PHP Fatal error
Uncaught Error: Interface 'CommentIQ_EventManagement_SubscriberInterface' not found in wp-content/plugins/elevated-comments/src/CommentIQ/Subscriber/CommentIQAPISubscriber.php:17
- > PHP Notice
Trying to get property 'comment_author' of non-object in wp-content/plugins/elevated-comments/assets/templates/elevated-comment.php on line 9
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: engagement, comments, long-tail
elevated-comments/commentiq.php 85% from 13 tests
The entry point to "Elevated Comments" version 1.1.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("elevated-comments.php" instead of "commentiq.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected909 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 220 | 919 | 758 |
CSS | 1 | 12 | 2 | 79 |
Markdown | 1 | 38 | 0 | 72 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 9.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 10 | 12.82% |
▷ Public methods | 54 | 69.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 30.77% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.97MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wp-org-assets/icon-128x128.png | 14.44KB | 5.79KB | ▼ 59.92% |
wp-org-assets/screenshot-3.png | 344.35KB | 145.56KB | ▼ 57.73% |
wp-org-assets/screenshot-1.png | 514.60KB | 206.22KB | ▼ 59.93% |
wp-org-assets/screenshot-2.png | 74.63KB | 24.81KB | ▼ 66.75% |
wp-org-assets/icon-256x256.png | 42.55KB | 16.04KB | ▼ 62.32% |