84% fusion-extension-map

Code Review | Fusion Page Builder : Extension - Map

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

About plugin

  • Plugin page: fusion-extension-map
  • Plugin version: 1.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.9.3
  • WordPress version: 6.3.1
  • First release: Aug 4, 2016
  • Latest release: Apr 13, 2022
  • Number of updates: 58
  • Update frequency: every 35.9 days
  • Top authors: agencydominion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /8,935 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.41ms] Passed 4 tests

This is a short check of server-side resources used by Fusion Page Builder : Extension - Map
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.53 ▲0.65
Dashboard /wp-admin3.32 ▲0.0251.58 ▼5.99
Posts /wp-admin/edit.php3.37 ▲0.0253.12 ▼0.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.79 ▼7.21
Media Library /wp-admin/upload.php3.25 ▲0.0234.35 ▼3.92

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Fusion Page Builder : Extension - Map
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5613.28 ▼1.071.91 ▲0.0443.99 ▼1.27
Dashboard /wp-admin2,221 ▲184.89 ▼0.96102.56 ▲1.0242.93 ▼0.47
Posts /wp-admin/edit.php2,100 ▼32.03 ▼0.0134.61 ▼6.7634.78 ▼3.52
Add New Post /wp-admin/post-new.php1,531 ▼923.11 ▲4.67689.21 ▲53.8455.63 ▼4.86
Media Library /wp-admin/upload.php1,394 ▼64.23 ▲0.01100.32 ▼8.4744.45 ▼4.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just 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-map/includes/extensions/map.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-extension-map/fusion-extension-map.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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 your attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

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

The main file in "Fusion Page Builder : Extension - Map" v. 1.6.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
33 characters long description:
Map Extension Package for Fusion.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin741 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2105158497
JavaScript21825239
CSS1135

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity22.50
▷ Minimum class complexity13.00
▷ Maximum class complexity32.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG files were detected