84% fusion-extension-button

Code Review | Fusion Page Builder : Extension - Button

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

About plugin

  • Plugin page: fusion-extension-...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 4, 2016
  • Latest release: Aug 27, 2019
  • Number of updates: 32
  • Update frequency: every 35.2 days
  • Top authors: agencydominion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /9,269 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.71ms] Passed 4 tests

An overview of server-side resources used by Fusion Page Builder : Extension - Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.13 ▼1.32
Dashboard /wp-admin3.32 ▲0.0151.32 ▲0.67
Posts /wp-admin/edit.php3.37 ▲0.0150.43 ▲0.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.67 ▼14.78
Media Library /wp-admin/upload.php3.24 ▲0.0138.32 ▲1.39

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Fusion Page Builder : Extension - Button: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▲0.151.89 ▲0.2240.11 ▼1.04
Dashboard /wp-admin2,195 ▲215.54 ▼0.0087.31 ▲0.9038.96 ▼9.69
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0839.64 ▲2.7636.64 ▼1.58
Add New Post /wp-admin/post-new.php1,526 ▼1123.55 ▲5.17620.35 ▼16.1553.06 ▼11.02
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.03101.94 ▼1.4944.84 ▼7.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fusion-extension-button/includes/extensions/button.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-extension-button/fusion-extension-button.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The primary PHP file in "Fusion Page Builder : Extension - Button" version 1.2.0 is used by WordPress to initiate all plugin functionality
36 characters long description:
Button Extension Package for Fusion.

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
Success! There were no dangerous files found in this plugin353 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP27297246
JavaScript1918107

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity20.00
▷ Minimum class complexity7.00
▷ Maximum class complexity33.00
Average method complexity5.22
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin