Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.34ms] Passed 4 tests
Analyzing server-side resources used by Lazy Social Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.75 ▼0.20 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.08 ▼2.33 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 79.00 ▲27.22 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 86.43 ▼15.23 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 30.40 ▼3.59 |
Lazy FB Comments /wp-admin/options-general.php?page=lfc-settings | 3.31 | 32.89 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
lfc_options |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Lazy Social Comments: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲52 | 14.79 ▲0.42 | 1.78 ▼2.61 | 42.79 ▲1.50 |
Dashboard /wp-admin | 2,204 ▲16 | 4.83 ▼0.07 | 109.49 ▲5.46 | 38.58 ▼6.68 |
Posts /wp-admin/edit.php | 2,087 ▼5 | 1.97 ▼0.02 | 41.26 ▲0.42 | 30.88 ▼5.20 |
Add New Post /wp-admin/post-new.php | 1,516 ▲2 | 23.10 ▲5.62 | 616.15 ▼28.94 | 59.78 ▲2.64 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.22 ▲0.04 | 104.15 ▼1.82 | 41.13 ▼8.30 |
Lazy FB Comments /wp-admin/options-general.php?page=lfc-settings | 1,061 | 2.07 | 22.97 | 31.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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
Good news, no errors were detected
SRP 0% 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
- 11× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/lazy-facebook-comments/public/lfc-comments.php
- > /wp-content/plugins/lazy-facebook-comments/includes/class-lazy-facebook-comments.php
- > /wp-content/plugins/lazy-facebook-comments/includes/class-lfc-activator.php
- > /wp-content/plugins/lazy-facebook-comments/public/lfc-closed-comments.php
- > /wp-content/plugins/lazy-facebook-comments/includes/class-lfc-loader.php
- > /wp-content/plugins/lazy-facebook-comments/public/class-lfc-public.php
- > /wp-content/plugins/lazy-facebook-comments/admin/class-lfc-admin.php
- > /wp-content/plugins/lazy-facebook-comments/admin/partials/lfc-admin-display.php
- > /wp-content/plugins/lazy-facebook-comments/includes/class-lfc-i18n.php
- > /wp-content/plugins/lazy-facebook-comments/uninstall.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lazy-facebook-comments/admin/partials/lfc-admin-credits-tab.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/lazy-facebook-comments/admin/partials/lfc-admin-general-tab.php:4
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: fb comments, lazy comments, facebook comments, facebook lazy comments, lazy load fb...
lazy-facebook-comments/lazy-facebook-comments.php 92% from 13 tests
The primary PHP file in "Lazy Social Comments" version 2.0.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
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
Everything looks great! No dangerous files found in this plugin675 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 177 | 675 | 637 |
CSS | 1 | 4 | 9 | 38 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 1 | 2.63% |
▷ Public methods | 26 | 68.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 31.58% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin