84% fusion-extension-comments

Code Review | Fusion Page Builder : Extension - Comments

WordPress plugin Fusion Page Builder : Extension - Comments scored84%from 54 tests.

About plugin

  • Plugin page: fusion-extension-...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.1
  • WordPress version: 6.3.1
  • First release: Aug 4, 2016
  • Latest release: Dec 14, 2017
  • Number of updates: 16
  • Update frequency: every 31.5 days
  • Top authors: agencydominion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,050 total downloads

Benchmarks

Plugin footprint 82% 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.01MB] [CPU: ▼15.33ms] Passed 4 tests

Analyzing server-side resources used by Fusion Page Builder : Extension - Comments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.58 ▲2.14
Dashboard /wp-admin3.32 ▼0.0250.26 ▼18.98
Posts /wp-admin/edit.php3.37 ▲0.0250.75 ▼2.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.70 ▼38.74
Media Library /wp-admin/upload.php3.24 ▲0.0238.14 ▼1.59

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • There were 1 file (1.04KB) illegally modified outside of "wp-content/plugins/fusion-extension-comments/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Fusion Page Builder : Extension - Comments: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.131.67 ▲0.0142.25 ▲1.58
Dashboard /wp-admin2,198 ▲245.63 ▲0.1081.89 ▼6.5344.79 ▼0.03
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0535.24 ▼1.9133.51 ▼2.58
Add New Post /wp-admin/post-new.php1,526 ▼023.03 ▼0.61661.29 ▲13.5155.40 ▲2.41
Media Library /wp-admin/upload.php1,394 ▼64.17 ▼0.1297.79 ▼14.4845.14 ▼4.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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-extension-comments/includes/extensions/comments.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-extension-comments/fusion-extension-comments.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
The official readme.txt is a good inspiration

fusion-extension-comments/fusion-extension-comments.php Passed 13 tests

This is the main PHP file of "Fusion Page Builder : Extension - Comments" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
Comments Extension Package for Fusion.

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
Everything looks great! No dangerous files found in this plugin58 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2276158

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 files were detected