Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.02ms] Passed 4 tests
A check of server-side resources used by Comments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.63 ▼4.78 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.87 ▲0.86 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.44 ▼3.45 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 92.40 ▼8.69 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.87 ▲1.52 |
Settings /wp-admin/edit-comments.php?page=comments-customizer | 3.27 | 32.88 |
All Comments /wp-admin/edit-comments.php | 3.32 | 39.79 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Comments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲60 | 14.47 ▲0.10 | 1.66 ▼0.55 | 41.71 ▼8.33 |
Dashboard /wp-admin | 2,226 ▲38 | 4.88 ▼0.98 | 109.90 ▲10.88 | 39.80 ▼2.64 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.01 ▼0.02 | 37.25 ▲0.19 | 34.60 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 23.16 ▲0.17 | 663.34 ▲37.44 | 54.11 ▼1.38 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.15 ▼0.04 | 94.22 ▼2.36 | 40.74 ▲0.17 |
Settings /wp-admin/edit-comments.php?page=comments-customizer | 806 | 2.04 | 27.14 | 25.66 |
All Comments /wp-admin/edit-comments.php | 1,813 | 2.27 | 38.98 | 32.38 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Comments_Main' not found in wp-content/plugins/advanced-comments/admin/comments_admin.php:3
- > PHP Fatal error
Uncaught Error: Class 'Comments_Main' not found in wp-content/plugins/advanced-comments/frontend/comments_frontend.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: comment form, comments, comment, commenting
advanced-comments/comments.php 92% from 13 tests
The main PHP script in "Comments" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-comments.php" instead of "comments.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
There were no executable files found in this plugin117 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 43 | 101 | 117 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin