Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.10ms] Passed 4 tests
Analyzing server-side resources used by Comment Load More
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.00 ▼8.98 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.08 ▼3.82 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 57.43 ▲6.56 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.61 ▼15.42 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.65 ▼0.18 |
Comment Load More /wp-admin/options-general.php?page=comment-load-more | 3.22 | 32.43 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Comment Load More
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.82 ▼0.54 | 8.44 ▲6.94 | 38.07 ▼1.02 |
Dashboard /wp-admin | 2,202 ▲28 | 5.59 ▲0.01 | 89.09 ▲4.76 | 42.85 ▼2.93 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▼0.02 | 36.63 ▼1.42 | 33.82 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.09 ▼0.08 | 646.89 ▼34.54 | 49.42 ▼20.35 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.03 | 93.18 ▼14.37 | 41.47 ▼3.50 |
Comment Load More /wp-admin/options-general.php?page=comment-load-more | 781 | 1.99 | 22.61 | 24.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined index: comment_index in wp-content/plugins/comment-load-more/get_more_comments.php on line 18
- > PHP Notice
Undefined index: parent_id in wp-content/plugins/comment-load-more/get_more_comments.php on line 17
- > PHP Notice
Undefined index: post_id in wp-content/plugins/comment-load-more/get_more_comments.php on line 16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (This shows what nested comments might look like, and the Load More buttons.)
comment-load-more/comment_load_more.php 92% from 13 tests
"Comment Load More" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("comment-load-more.php" instead of "comment_load_more.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected233 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 26 | 112 | 164 |
JavaScript | 1 | 3 | 21 | 63 |
CSS | 1 | 0 | 3 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 93.72KB | 27.19KB | ▼ 70.99% |