84% fusion-extension-divider

Code Review | Fusion Page Builder : Extension - Divider

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

About plugin

  • Plugin page: fusion-extension-...
  • Plugin version: 1.1.4
  • 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: 20
  • Update frequency: every 25.2 days
  • Top authors: agencydominion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /7,455 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.90ms] Passed 4 tests

Analyzing server-side resources used by Fusion Page Builder : Extension - Divider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.86 ▼4.43
Dashboard /wp-admin3.34 ▲0.0346.16 ▼3.96
Posts /wp-admin/edit.php3.39 ▲0.0350.66 ▲4.03
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.36 ▼8.58
Media Library /wp-admin/upload.php3.26 ▲0.0334.15 ▲1.39

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Fusion Page Builder : Extension - Divider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.67 ▼0.601.79 ▼0.1538.59 ▼4.16
Dashboard /wp-admin2,203 ▲154.90 ▼0.06140.72 ▲26.6644.40 ▼3.01
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0239.26 ▲1.0837.41 ▼1.13
Add New Post /wp-admin/post-new.php1,533 ▼023.17 ▼0.09674.79 ▲54.9959.51 ▼1.32
Media Library /wp-admin/upload.php1,385 ▲34.23 ▲0.0297.40 ▲2.7741.23 ▼0.35

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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

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 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-divider/includes/extensions/divider.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-extension-divider/fusion-extension-divider.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt is a good inspiration

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

Analyzing the main PHP file in "Fusion Page Builder : Extension - Divider" version 1.1.4
37 characters long description:
Divider 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 plugin177 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22555158
CSS14419

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.61
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin