Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.88ms] Passed 4 tests
Analyzing server-side resources used by UGC Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.92 ▲0.11 |
Dashboard /wp-admin | 3.36 ▲0.02 | 47.45 ▼10.41 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 45.94 ▲4.26 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 82.55 ▼14.72 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.44 ▼2.51 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
ugcc_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
UGC Comments: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.78 ▲0.39 | 1.82 ▲0.12 | 43.35 ▲3.30 |
Dashboard /wp-admin | 2,207 ▲21 | 5.83 ▲0.86 | 96.88 ▼12.05 | 38.58 ▼0.80 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.06 ▲0.05 | 38.96 ▲3.88 | 31.71 ▼1.38 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 23.11 ▲5.47 | 651.47 ▲49.20 | 55.17 ▲2.96 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▲0.01 | 96.33 ▼4.55 | 41.83 ▼0.23 |
UGC Comments /wp-admin/ugc-comments.php | 26 | 0.44 | 0.12 | 13.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ugc-comments/ugc-comments.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/ugc-comments.php
- > Network (severe)
wp-admin/ugc-comments.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: seo, google, nofollow, ugc, rel
ugc-comments/ugc-comments.php Passed 13 tests
"UGC Comments" version 1.00's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
103 characters long description:
The plugin allows you to manage the values of the "rel" attribute in comment links ("ugc", "nofollow").
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
Good job! No executable or dangerous file extensions detected597 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 70 | 47 | 299 |
PHP | 1 | 52 | 43 | 252 |
CSS | 2 | 5 | 7 | 46 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 12 | |
▷ Named functions | 12 | 100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon_coffee.png | 5.14KB | 5.32KB | 0.00% |