Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▲0.31ms] Passed 4 tests
A check of server-side resources used by Social Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.05 | 47.27 ▲4.62 |
Dashboard /wp-admin | 3.86 ▲0.29 | 56.99 ▲4.24 |
Posts /wp-admin/edit.php | 3.91 ▲0.23 | 53.93 ▼8.14 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.23 | 108.11 ▲0.51 |
Media Library /wp-admin/upload.php | 3.72 ▲0.23 | 42.83 ▲5.72 |
All Comments /wp-admin/edit-comments.php | 3.78 | 47.45 |
Social Comments /wp-admin/edit-comments.php?page=socialCommentspanel | 3.72 | 38.38 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Social Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.29 ▲0.05 | 1.90 ▲0.25 | 43.82 ▼4.83 |
Dashboard /wp-admin | 2,212 ▲35 | 5.57 ▼0.12 | 86.45 ▼2.82 | 40.61 ▼0.59 |
Posts /wp-admin/edit.php | 2,117 ▲20 | 2.06 ▲0.04 | 37.38 ▼3.38 | 34.30 ▼7.13 |
Add New Post /wp-admin/post-new.php | 1,560 ▲6 | 23.24 ▲4.81 | 594.66 ▼30.54 | 64.68 ▲9.81 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.24 ▼0.00 | 101.68 ▼8.75 | 43.18 ▼4.35 |
All Comments /wp-admin/edit-comments.php | 1,821 | 2.29 | 39.88 | 35.87 |
Social Comments /wp-admin/edit-comments.php?page=socialCommentspanel | 2,196 | 3.82 | 69.24 | 179.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/edit-comments.php?page=socialCommentspanel
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit-comments.php?page=socialCommentspanel
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php?page=socialCommentspanel
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/social-comments/views/Google.comments.markup.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/social-comments/views/Facebook.comments.markup.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/social-comments/views/disqus.comments.markup.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-comments/plugin.php:71
- > PHP Fatal error
Uncaught Error: Class 'SimplePanel' not found in wp-content/plugins/social-comments/classes/gpcomments_Panel_Class.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit-comments.php?page=socialCommentspanel
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at Object.hooks (/wp-admin/edit-comments.php?page=socialCommentspanel:223:61)\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit-comments.php?page=socialCommentspanel:373:22)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit-comments.php?page=socialCommentspanel
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: disqus comments, 1 comments, comments, tabbed comments social comments, facebook comments...
social-comments/plugin.php 92% from 13 tests
The primary PHP file in "Social Comments" version 0.1.6 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-comments.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,614 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 149 | 820 | 1,376 |
CSS | 3 | 0 | 0 | 238 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 71 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
57 PNG files occupy 0.29MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/retrobadge/facebook.png | 4.42KB | 2.60KB | ▼ 41.14% |
assets/images/icons/somicro/gplus.png | 3.62KB | 0.81KB | ▼ 77.56% |
assets/images/icons/denimdark/facebook.png | 5.63KB | 2.22KB | ▼ 60.49% |
assets/images/icons/apricum/gplus.png | 12.32KB | 4.93KB | ▼ 59.99% |
assets/images/icons/creamysilver/disqus.png | 2.50KB | 2.05KB | ▼ 18.17% |