Benchmarks
Plugin footprint 83% 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: ▲0.09MB] [CPU: ▼2.00ms] Passed 4 tests
An overview of server-side resources used by Comment Tweaks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.45 ▲3.62 |
Dashboard /wp-admin | 3.39 ▲0.09 | 43.23 ▼3.85 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 44.57 ▲1.62 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 83.12 ▼6.55 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.83 ▲0.79 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Comment Tweaks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.17 ▼1.22 | 1.74 ▼0.18 | 43.25 ▲3.47 |
Dashboard /wp-admin | 2,208 ▲16 | 4.84 ▼0.05 | 106.15 ▼7.62 | 40.67 ▼0.64 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.06 ▲0.03 | 33.74 ▼2.83 | 33.88 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 23.20 ▲5.63 | 678.62 ▲3.65 | 61.82 ▲9.36 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.24 ▼0.01 | 97.01 ▼0.40 | 43.43 ▲2.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/comment-tweaks/public/partials/comment-tweaks-public-display.php
- > /wp-content/plugins/comment-tweaks/admin/partials/comment-tweaks-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: comments, editor
comment-tweaks/comment-tweaks.php Passed 13 tests
"Comment Tweaks" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
Enhance Wordpress native comments (enables WP editor)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected562 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 197 | 695 | 415 |
JavaScript | 2 | 52 | 136 | 122 |
CSS | 2 | 3 | 10 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 10.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 8 | 20.51% |
▷ Public methods | 33 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.38% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin