Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.84ms] Passed 4 tests
Server-side resources used by One Click Close Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.31 ▼2.64 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.39 ▼3.04 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.51 ▼0.32 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.85 ▼5.37 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.73 ▲2.55 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for One Click Close Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.63 ▲0.36 | 1.78 ▼0.11 | 48.04 ▲5.29 |
Dashboard /wp-admin | 2,198 ▲21 | 5.57 ▼0.05 | 85.29 ▼5.41 | 38.57 ▼0.67 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.01 ▲0.03 | 36.61 ▼1.49 | 37.03 ▼4.32 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 22.99 ▲4.92 | 618.76 ▼19.57 | 52.60 ▼10.78 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.24 ▲0.04 | 103.33 ▲4.03 | 43.04 ▼2.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/one-click-close-comments/tests/bootstrap.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/one-click-close-comments/tests/bootstrap.php on line 17
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/one-click-close-comments/tests/bootstrap.php on line 17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: commenting status, comments, close comments, admin, discussion...
one-click-close-comments/one-click-close-comments.php Passed 13 tests
"One Click Close Comments" version 2.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
102 characters long description:
Conveniently close or open comments for a post or page with one click from the admin listing of posts.
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
Everything looks great! No dangerous files found in this plugin637 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 137 | 199 | 349 |
Markdown | 3 | 43 | 0 | 200 |
JavaScript | 1 | 0 | 1 | 29 |
CSS | 1 | 1 | 0 | 24 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 14 | 33.33% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin