Benchmarks
Plugin footprint 64% 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: ▲1.87MB] [CPU: ▼0.62ms] 75% from 4 tests
Analyzing server-side resources used by AnyComment
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 2,920.67ms on /wp-admin/admin.php?page=anycomment-dashboard)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.68 ▲2.22 | 54.33 ▲4.26 |
Dashboard /wp-admin | 6.08 ▲2.73 | 74.18 ▲12.57 |
Posts /wp-admin/edit.php | 6.11 ▲2.75 | 74.72 ▲16.72 |
Add New Post /wp-admin/post-new.php | 5.65 ▼0.24 | 59.29 ▼36.03 |
Media Library /wp-admin/upload.php | 5.98 ▲2.75 | 72.17 ▲41.99 |
Emails /wp-admin/admin.php?page=anycomment-emails | 5.91 | 57.53 |
Subscriptions /wp-admin/admin.php?page=anycomment-subscriptions | 5.91 | 52.76 |
Rating /wp-admin/admin.php?page=anycomment-rating | 5.91 | 50.20 |
AnyComment /wp-admin/admin.php?page=anycomment-dashboard | 6.16 | 2,920.67 |
Files /wp-admin/admin.php?page=anycomment-files | 5.91 | 359.17 |
Server storage [IO: ▲5.53MB] [DB: ▲0.01MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- The plugin illegally modified 6 files (10.94KB) outside of "wp-content/plugins/anycomment/" and "wp-content/uploads/"
- (new file) wp-content/cache/anycomment/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/3c5b9ab262018325/0766c8dc12b7fc4c/9b87b6e21a74caab/f02f75b28bb0fb66/9bc65c2abec14177/8ffaa729489f3e87/3d02bed54d8ed5ca/05f43d64694250be/7c5e8e79d9bddf95/be8a7082cddc342f.php
- (new file) wp-content/cache/anycomment/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/3c5b9ab262018325/0766c8dc12b7fc4c/a912a94d79b5124d/876951f96ebb256f/3fb832a0a291a746/629bd888d996c0f3.php
- (new file) wp-content/cache/anycomment/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/3c5b9ab262018325/0766c8dc12b7fc4c/a912a94d79b5124d/876951f96ebb256f/310ac523f0b1646f/ea79f5df345aa512.php
- (new file) wp-content/cache/anycomment/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/3c5b9ab262018325/0766c8dc12b7fc4c/9b87b6e21a74caab/f02f75b28bb0fb66/9bc65c2abec14177/8ffaa729489f3e87/3d02bed54d8ed5ca/05f43d64694250be/706336e5e47e3dac/44f53537e8eda924.php
- (new file) wp-content/cache/anycomment/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/3c5b9ab262018325/0766c8dc12b7fc4c/508c75c8507a2ae5/223dfd2faeb98122/9b87b6e21a74caab/f02f75b28bb0fb66/49d224030c7667fc/a76bfe7eea96c3e2/eccbc87e4b5ce2fe/28308fd9f2a7baf3.php
- (new file) wp-content/cache/anycomment/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/3c5b9ab262018325/0766c8dc12b7fc4c/9b87b6e21a74caab/f02f75b28bb0fb66/9bc65c2abec14177/8ffaa729489f3e87/3d02bed54d8ed5ca/05f43d64694250be/6e0351a91f1a274f/d07a9932fdb78a7c.php
Filesystem: 644 new files
Database: 5 new tables, 11 new options
New tables |
---|
wp_anycomment_uploaded_files |
wp_anycomment_subscriptions |
wp_anycomment_likes |
wp_anycomment_email_queue |
wp_anycomment_rating |
New WordPress options |
---|
anycomment-social |
can_compress_scripts |
anycomment_migration |
anycomment-integration |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
anycomment-generic |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AnyComment
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.32 ▼0.89 | 5.78 ▲3.95 | 42.19 ▼0.07 |
Dashboard /wp-admin | 2,232 ▲44 | 5.80 ▼0.01 | 108.15 ▼10.26 | 81.99 ▲37.02 |
Posts /wp-admin/edit.php | 2,130 ▲38 | 1.97 ▼0.03 | 38.16 ▼6.61 | 35.29 ▼2.28 |
Add New Post /wp-admin/post-new.php | 1,562 ▲34 | 18.43 ▼4.64 | 744.20 ▲146.52 | 59.48 ▲15.06 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.13 ▼0.11 | 108.34 ▲4.06 | 79.11 ▲31.62 |
Emails /wp-admin/admin.php?page=anycomment-emails | 1,141 | 3.59 | 52.17 | 65.59 |
Subscriptions /wp-admin/admin.php?page=anycomment-subscriptions | 1,154 | 3.45 | 47.20 | 38.28 |
Rating /wp-admin/admin.php?page=anycomment-rating | 1,137 | 3.43 | 34.95 | 37.48 |
AnyComment /wp-admin/admin.php?page=anycomment-dashboard | 1,257 | 4.89 | 112.87 | 88.49 |
Files /wp-admin/admin.php?page=anycomment-files | 1,077 | 3.43 | 38.72 | 35.90 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables were found after uninstall: 5 tables
- wp_anycomment_rating
- wp_anycomment_uploaded_files
- wp_anycomment_likes
- wp_anycomment_subscriptions
- wp_anycomment_email_queue
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_anycomment-comment-list
- can_compress_scripts
- anycomment-integration
- anycomment-social
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- anycomment_migration
- db_upgraded
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=anycomment-files
- > Notice in wp-content/plugins/anycomment/templates/admin/tables/files.php+26
Undefined index: action
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
Please fix the following items
- 288× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stash\\Driver\\AbstractDriver' not found in wp-content/plugins/anycomment/vendor/tedivm/stash/src/Stash/Driver/Sqlite.php:26
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Exception\\InvalidArgumentException' not found in wp-content/plugins/anycomment/vendor/hybridauth/hybridauth/src/Exception/InvalidApplicationCredentialsException.php:13
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/anycomment/vendor/hybridauth/hybridauth/src/Provider/Mailru.php:18
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\HttpClient\\Util' not found in wp-content/plugins/anycomment/vendor/hybridauth/hybridauth/examples/example_02.php:13
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/anycomment/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/anycomment/vendor/hybridauth/hybridauth/src/Provider/Amazon.php:18
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/anycomment/vendor/hybridauth/hybridauth/src/Provider/Slack.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/anycomment/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php:25
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/anycomment/vendor/monolog/monolog/src/Monolog/Handler/HipChatHandler.php:29
- > PHP Fatal error
Uncaught Error: Class 'AnyComment\\AnyCommentServiceApi' not found in wp-content/plugins/anycomment/templates/admin/saas-notice.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=anycomment-dashboard
- > Console-api (severe) in wp-content/plugins/anycomment/assets/js/Chart.min.js?ver=0.3.6+12:85979
Invalid scale configuration for scale: yAxes
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
anycomment/anycomment.php 92% from 13 tests
"AnyComment" version 0.3.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.6" instead of "5.4")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin46,171 lines of code in 592 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 470 | 11,084 | 22,904 | 37,648 |
Sass | 25 | 461 | 498 | 4,243 |
Markdown | 15 | 749 | 0 | 1,448 |
JSON | 12 | 0 | 0 | 1,000 |
JavaScript | 5 | 54 | 952 | 892 |
SVG | 54 | 0 | 3 | 426 |
CSS | 3 | 47 | 1 | 353 |
HTML | 7 | 22 | 4 | 122 |
YAML | 1 | 3 | 0 | 39 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 735.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 76 | |
Interfaces | 35 | |
Traits | 5 | |
Classes | 382 | |
▷ Abstract classes | 20 | 5.24% |
▷ Concrete classes | 362 | 94.76% |
▷ Final classes | 9 | 2.49% |
Methods | 2,633 | |
▷ Static methods | 509 | 19.33% |
▷ Public methods | 1,920 | 72.92% |
▷ Protected methods | 598 | 22.71% |
▷ Private methods | 115 | 4.37% |
Functions | 102 | |
▷ Named functions | 14 | 13.73% |
▷ Anonymous functions | 88 | 86.27% |
Constants | 356 | |
▷ Global constants | 6 | 1.69% |
▷ Class constants | 350 | 98.31% |
▷ Public constants | 350 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
assets/img/no-avatar.png | 3.88KB | 2.20KB | ▼ 43.36% |
assets/img/admin-menu-logo.png | 0.75KB | 0.88KB | 0.00% |