Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.93ms] Passed 4 tests
Analyzing server-side resources used by Comment Controller
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 48.76 ▲1.35 |
Dashboard /wp-admin | 3.36 ▲0.05 | 52.73 ▼3.14 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 53.68 ▲0.56 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 101.44 ▼2.49 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.81 ▲2.49 |
Comment Controller /wp-admin/options-general.php?page=comment_controller-settings | 3.28 | 44.69 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
comment_controller_settings |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Comment Controller
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 13.68 ▲0.53 | 4.30 ▲2.35 | 43.35 ▼2.73 |
Dashboard /wp-admin | 2,210 ▲7 | 5.90 ▲0.09 | 107.77 ▼7.27 | 42.63 ▼0.46 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.00 | 40.25 ▲4.91 | 34.31 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,545 ▲25 | 17.99 ▼5.22 | 596.10 ▼10.43 | 54.24 ▲2.44 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▼0.00 | 95.09 ▼2.38 | 46.48 ▲5.29 |
Comment Controller /wp-admin/options-general.php?page=comment_controller-settings | 1,085 | 5.04 | 96.90 | 24.85 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- comment_controller_settings
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/comment-controller/templates/comments.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
3 plugin tags: disable, comments, comment
comment-controller/class-comment-controller.php 77% from 13 tests
"Comment Controller" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("comment-controller.php" instead of "class-comment-controller.php")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected10,773 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 8,074 |
PHP | 10 | 1,038 | 1,979 | 2,443 |
CSS | 4 | 16 | 10 | 91 |
Markdown | 4 | 43 | 0 | 90 |
JavaScript | 2 | 18 | 13 | 75 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 74.17 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 130 | |
▷ Static methods | 1 | 0.77% |
▷ Public methods | 118 | 90.77% |
▷ Protected methods | 2 | 1.54% |
▷ Private methods | 10 | 7.69% |
Functions | 14 | |
▷ Named functions | 14 | 100.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
PNG images were not found in this plugin