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
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.89ms] Passed 4 tests
Analyzing server-side resources used by Restrict Comments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.62 ▼2.92 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.23 ▼6.69 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.82 ▼4.26 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.34 ▼13.70 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.71 ▼0.90 |
Restrict Comments /wp-admin/edit-comments.php?page=restrict-comment | 3.28 | 29.12 |
All Comments /wp-admin/edit-comments.php | 3.33 | 41.96 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Restrict Comments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.44 ▼0.14 | 2.01 ▲0.20 | 39.52 ▼1.64 |
Dashboard /wp-admin | 2,215 ▲38 | 5.68 ▲0.07 | 94.98 ▲2.24 | 42.19 ▲1.94 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.02 ▼0.13 | 36.29 ▼5.52 | 31.24 ▼5.59 |
Add New Post /wp-admin/post-new.php | 1,561 ▲16 | 23.15 ▲0.09 | 669.64 ▲15.55 | 55.19 ▲1.05 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.21 ▲0.01 | 101.30 ▼12.47 | 42.29 ▼6.42 |
Restrict Comments /wp-admin/edit-comments.php?page=restrict-comment | 906 | 2.02 | 28.48 | 36.74 |
All Comments /wp-admin/edit-comments.php | 1,824 | 2.29 | 36.03 | 35.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- 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 | 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 items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restrict-comments/admin/trrc-settings.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: comment, comments
restrict-comments/restrict-comments.php 85% from 13 tests
The main PHP file in "Restrict Comments" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)
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 plugin350 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 42 | 30 | 180 |
CSS | 1 | 20 | 2 | 170 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG images were found in this plugin