Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.12ms] Passed 4 tests
Analyzing server-side resources used by Comments Categories
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.77 ▼3.18 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.91 ▼6.76 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 44.89 ▼1.18 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.01 ▼9.37 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.51 ▲0.09 |
Comments Categories /wp-admin/options-general.php?page=wpr-comments-category | 3.23 | 31.49 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Comments Categories
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 13.58 ▼0.70 | 8.91 ▲7.05 | 39.03 ▼5.46 |
Dashboard /wp-admin | 2,223 ▲43 | 5.77 ▲0.16 | 87.53 ▼4.23 | 40.22 ▲1.99 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.32 ▲0.19 | 37.04 ▲2.21 | 34.00 ▼3.60 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.20 ▲0.02 | 679.65 ▲45.52 | 37.26 ▼21.53 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.58 ▲0.39 | 99.36 ▼2.49 | 43.36 ▼3.49 |
Comments Categories /wp-admin/options-general.php?page=wpr-comments-category | 850 | 1.95 | 26.34 | 24.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
2 plugin tags: comments, categories
wpr-comments-categories/wpr-comments-categories.php Passed 13 tests
The principal PHP file in "Comments Categories" v. 1.0.0 is loaded by WordPress automatically on each request
27 characters long description:
WPR add comments categories
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin425 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 57 | 118 | 352 |
JavaScript | 2 | 3 | 0 | 51 |
CSS | 2 | 3 | 0 | 22 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 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 | 0 | |
▷ Global constants | 0 | 0.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