Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼4.23ms] Passed 4 tests
A check of server-side resources used by Fancy Comments WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 42.43 ▼4.37 |
Dashboard /wp-admin | 3.54 ▲0.24 | 49.90 ▼0.73 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 53.50 ▲10.04 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 89.14 ▼19.51 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 39.20 ▲7.69 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_heateor_ffc_facebook_comments |
heateor_ffc_version |
widget_theysaidso_widget |
widget_recent-posts |
heateor_ffc |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Fancy Comments WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.28 ▼0.26 | 1.84 ▼0.42 | 44.70 ▲0.04 |
Dashboard /wp-admin | 2,212 ▲35 | 5.59 ▼0.05 | 89.10 ▼9.36 | 79.30 ▲34.67 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.00 ▲0.00 | 40.96 ▲2.13 | 36.33 ▼1.73 |
Add New Post /wp-admin/post-new.php | 6,269 ▲4,743 | 25.94 ▲2.18 | 952.33 ▲272.59 | 55.18 ▼2.84 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.10 ▼0.09 | 100.69 ▼8.19 | 72.91 ▲30.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/fancy-facebook-comments/uninstall.php
- > /wp-content/plugins/fancy-facebook-comments/admin/partials/fancy-facebook-comments-options-page.php
- > /wp-content/plugins/fancy-facebook-comments/admin/partials/fancy-facebook-comments-about.php
- > /wp-content/plugins/fancy-facebook-comments/fancy-facebook-comments.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fancy-facebook-comments/includes/class-fancy-facebook-comments-widgets.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
4 plugin tags: facebook comments, social comments, facebook commenting, social commenting
fancy-facebook-comments/fancy-facebook-comments.php Passed 13 tests
"Fancy Comments WordPress" version 1.2.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
Integrate Facebook Comments with your WordPress website easiest possible way
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,853 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 320 | 486 | 1,433 |
PO File | 1 | 127 | 172 | 390 |
JavaScript | 2 | 0 | 0 | 22 |
XML | 1 | 0 | 0 | 7 |
CSS | 1 | 0 | 0 | 1 |
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.57 |
Average class complexity | 39.20 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 5.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 18.75% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
10 PNG files occupy 0.31MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/info.png | 0.77KB | 0.58KB | ▼ 25.13% |
images/snaps/Fancy Facebook Comments - Moderation.png | 64.92KB | 23.95KB | ▼ 63.11% |
images/snaps/Fancy Facebook Comments - Logged in Users.png | 18.43KB | 7.68KB | ▼ 58.31% |
images/snaps/Fancy Facebook Comments - GDPR.png | 39.93KB | 16.22KB | ▼ 59.37% |
images/logo.png | 0.55KB | 0.37KB | ▼ 33.69% |