84% fusion-extension-gallery

Code Review | Fusion Page Builder : Extension - Gallery

WordPress plugin Fusion Page Builder : Extension - Gallery scored 84% from 54 tests.

About plugin

  • Plugin page: fusion-extension-...
  • Plugin version: 1.7.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.8.2
  • WordPress version: 6.3.1
  • First release: Aug 3, 2016
  • Latest release: Jan 7, 2022
  • Number of updates: 104
  • Update frequency: every 19.1 days
  • Top authors: agencydominion (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active / 24,678 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▼4.97ms] Passed 4 tests

This is a short check of server-side resources used by Fusion Page Builder : Extension - Gallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3543.37 ▲2.38
Dashboard /wp-admin3.64 ▲0.3444.99 ▼5.07
Posts /wp-admin/edit.php3.75 ▲0.4049.63 ▲0.29
Add New Post /wp-admin/post-new.php6.22 ▲0.3382.01 ▼14.88
Media Library /wp-admin/upload.php3.56 ▲0.3334.43 ▼0.21

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Fusion Page Builder : Extension - Gallery
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲12513.59 ▼1.062.14 ▲0.2842.24 ▲0.09
Dashboard /wp-admin2,206 ▲215.84 ▲0.95111.12 ▲12.3340.94 ▼6.43
Posts /wp-admin/edit.php2,092 ▲32.02 ▼0.0439.31 ▲3.2035.38 ▲4.66
Add New Post /wp-admin/post-new.php1,546 ▲1323.23 ▼0.04669.97 ▲18.2653.80 ▲0.06
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0597.38 ▲0.2740.82 ▼2.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-extension-gallery/fusion-extension-gallery.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fusion-extension-gallery/includes/extensions/gallery.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
Attributes that need to be fixed:
  • Tags: There are too many tags (17 tag instead of maximum 10)
Please take inspiration from this readme.txt

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

The main PHP script in "Fusion Page Builder : Extension - Gallery" version 1.7.6 is automatically included on every request by WordPress
37 characters long description:
Gallery Extension Package for Fusion.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin14,829 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript232,3754,02210,177
CSS72072772,131
PHP31992891,718
LESS1144278755
SVG30048

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity35.00
▷ Minimum class complexity7.00
▷ Maximum class complexity86.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods14.17%
▷ Public methods2395.83%
▷ Protected methods00.00%
▷ Private methods14.17%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/utilities/flexslider/images/bg_play_pause.png1.51KB0.52KB▼ 65.52%
includes/utilities/photoswipe/default-skin/default-skin.png0.53KB0.72KB0.00%