Benchmarks
Plugin footprint 82% 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: ▼8.84ms] Passed 4 tests
A check of server-side resources used by Contributor role for approved comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 50.98 ▲7.92 |
Dashboard /wp-admin | 3.36 ▲0.01 | 55.53 ▼12.33 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 50.13 ▼5.55 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.02 ▼18.34 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.82 ▲0.87 |
Contributor role for approved comments /wp-admin/options-general.php?page=contributor-role-for-approved-comments | 3.25 | 33.06 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/contributor-role-for-approved-comments/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
neededNumberOfApprovalComments |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Contributor role for approved comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.22 ▼1.09 | 1.77 ▲0.02 | 44.91 ▲4.14 |
Dashboard /wp-admin | 2,228 ▲22 | 4.87 ▼1.02 | 99.93 ▼5.63 | 39.46 ▼3.96 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.98 ▼0.02 | 35.39 ▼1.25 | 30.41 ▼10.99 |
Add New Post /wp-admin/post-new.php | 1,543 ▲14 | 23.01 ▲5.41 | 660.64 ▲43.74 | 59.27 ▲9.07 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.27 ▲0.04 | 108.23 ▲6.63 | 49.03 ▲4.85 |
Contributor role for approved comments /wp-admin/options-general.php?page=contributor-role-for-approved-comments | 797 | 2.07 | 24.63 | 26.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- neededNumberOfApprovalComments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 output text when accessed directly:
- > /wp-content/plugins/contributor-role-for-approved-comments/public/views/public.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/contributor-role-for-approved-comments/admin/views/admin.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (This is example of plugin setting page.)
contributor-role-for-approved-comments/contributor-role-for-approved-comments.php Passed 13 tests
The main PHP script in "Contributor role for approved comments" version 0.0.1 is automatically included on every request by WordPress
75 characters long description:
A plugin, which give a contributor role by user for some approval comments.
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
Good job! No executable or dangerous file extensions detected224 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 113 | 329 | 214 |
JavaScript | 2 | 8 | 2 | 10 |
CSS | 2 | 0 | 2 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 7 | 30.43% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 12.57KB | 5.75KB | ▼ 54.29% |
assets/banner-772x250.png | 9.79KB | 4.82KB | ▼ 50.72% |
assets/screenshot-1.png | 8.62KB | 5.87KB | ▼ 31.99% |