Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼5.18ms] Passed 4 tests
An overview of server-side resources used by WP Social Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 41.03 ▲0.17 |
Dashboard /wp-admin | 3.46 ▲0.16 | 46.68 ▼4.38 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.62 ▲5.30 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 84.08 ▼19.72 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.17 ▲3.23 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Social Comments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲163 | 14.35 ▼0.02 | 35.64 ▲33.48 | 39.88 ▼3.25 |
Dashboard /wp-admin | 2,222 ▲34 | 5.86 ▲0.98 | 101.02 ▼15.91 | 36.88 ▼6.95 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.01 ▲0.02 | 36.91 ▼3.31 | 34.77 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,538 ▼4 | 18.41 ▼0.08 | 648.99 ▲38.60 | 64.59 ▲8.02 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.21 ▲0.08 | 100.46 ▼1.61 | 42.67 ▼0.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/gs-facebook-comments/public/partials/wpfc-public-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gs-facebook-comments/admin/partials/wpfc-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gs-facebook-comments/admin/partials/wpfc-admin-right-area.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gs-facebook-comments/admin/partials/wpfc-admin-plugins.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #3 (screenshot-3.jpg)
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
gs-facebook-comments/wpfc.php 92% from 13 tests
The entry point to "WP Social Comments" version 1.7.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("gs-facebook-comments.php" instead of "wpfc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,718 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 233 | 732 | 835 |
PO File | 3 | 326 | 490 | 503 |
CSS | 2 | 45 | 14 | 367 |
JavaScript | 2 | 6 | 54 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 2 | 4.08% |
▷ Public methods | 43 | 87.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin