Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.51ms] Passed 4 tests
A check of server-side resources used by FastComments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.39 ▼3.96 |
Dashboard /wp-admin | 3.33 ▼0.02 | 50.05 ▼17.98 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.62 ▼0.74 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.28 ▼7.35 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.06 ▲1.09 |
All Comments /wp-admin/edit-comments.php | 3.26 | 45.16 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 35 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_fastcomments_event_ids |
wp_fastcomments_comment_ids |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
fastcomments_token |
fastcomments_log_level |
fastcomments_version |
can_compress_scripts |
widget_recent-comments |
fc_fastcomments_comment_ids_version |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by FastComments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲51 | 14.28 ▼0.28 | 1.64 ▼0.46 | 40.93 ▼0.02 |
Dashboard /wp-admin | 2,206 ▲32 | 5.57 ▼0.14 | 92.69 ▼1.98 | 42.73 ▲2.80 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.05 ▲0.05 | 36.17 ▲1.78 | 39.41 ▲2.28 |
Add New Post /wp-admin/post-new.php | 1,560 ▲31 | 23.32 ▲5.43 | 663.56 ▲11.27 | 57.56 ▲2.71 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.16 ▼0.03 | 110.33 ▲11.99 | 45.64 ▲3.97 |
All Comments /wp-admin/edit-comments.php | 1,820 | 2.29 | 36.90 | 34.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_fastcomments_comment_ids
- wp_fastcomments_event_ids
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'FastCommentsPublic' not found in wp-content/plugins/fastcomments/admin/fastcomments-admin-advanced-settings-view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/fastcomments/admin/fastcomments-admin-manual-sync-view.php:2
- > PHP Fatal error
Uncaught Error: Class 'FastCommentsPublic' not found in wp-content/plugins/fastcomments/admin/fastcomments-admin-support-view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fastcomments/admin/fastcomments-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fastcomments/admin/fastcomments-admin-setup-view.php:6
- > PHP Fatal error
Uncaught Error: Class 'FastCommentsPublic' not found in wp-content/plugins/fastcomments/admin/fastcomments-admin-view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/fastcomments/admin/fastcomments-admin-sso-view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fastcomments/public/fastcomments-widget-view.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: comment spam, comment system, live comments, live commenting, fast comments...
fastcomments/fastcomments-wordpress-plugin.php 92% from 13 tests
The entry point to "FastComments" version 3.12.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fastcomments.php" instead of "fastcomments-wordpress-plugin.php")
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
Good job! No executable or dangerous file extensions detected2,186 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 192 | 57 | 1,649 |
JavaScript | 4 | 45 | 10 | 455 |
CSS | 2 | 14 | 0 | 81 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 50.33 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 4 | 5.63% |
▷ Public methods | 57 | 80.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 19.72% |
Functions | 19 | |
▷ Named functions | 13 | 68.42% |
▷ Anonymous functions | 6 | 31.58% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logo.png | 6.11KB | 2.54KB | ▼ 58.45% |
admin/images/logo-50.png | 1.76KB | 0.78KB | ▼ 55.64% |
admin/images/settings.png | 7.59KB | 5.83KB | ▼ 23.25% |
admin/images/css.png | 5.01KB | 4.30KB | ▼ 14.08% |
admin/images/support.png | 7.69KB | 6.67KB | ▼ 13.34% |