84% fusion-extension-image

Code Review | Fusion Page Builder : Extension - Image

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

About plugin

  • Plugin page: fusion-extension-...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.6
  • WordPress version: 6.3.1
  • First release: Aug 3, 2016
  • Latest release: Jan 27, 2021
  • Number of updates: 35
  • Update frequency: every 47.0 days
  • Top authors: agencydominion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 10,716 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.00MB] [CPU: ▼2.32ms] Passed 4 tests

Server-side resources used by Fusion Page Builder : Extension - Image
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.09 ▼3.86
Dashboard /wp-admin3.31 ▲0.0142.91 ▼5.08
Posts /wp-admin/edit.php3.36 ▲0.0045.06 ▼2.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.16 ▲2.43
Media Library /wp-admin/upload.php3.23 ▲0.0044.84 ▲12.23

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Fusion Page Builder : Extension - Image
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.22 ▼1.161.62 ▼0.0841.42 ▼1.20
Dashboard /wp-admin2,206 ▲155.90 ▲1.02107.37 ▲6.6142.46 ▼1.91
Posts /wp-admin/edit.php2,092 ▲61.99 ▼0.0339.17 ▲3.6635.71 ▲0.60
Add New Post /wp-admin/post-new.php1,514 ▼2017.79 ▼5.33666.32 ▼5.0255.54 ▼0.01
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.01109.03 ▲8.1750.25 ▲3.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-extension-image/includes/extensions/image.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-extension-image/fusion-extension-image.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can take inspiration from this readme.txt

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

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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected204 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24267155
CSS111849

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

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