93% webico-maps-embed-flatsome-addons

Code Review | Webico Maps Embed Flatsome Addons

WordPress plugin Webico Maps Embed Flatsome Addons scored 93% from 54 tests.

About plugin

  • Plugin page: webico-maps-embed...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.0-4.8.9
  • WordPress version: 5.8.1
  • First release: Oct 6, 2018
  • Latest release: Oct 6, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: webico (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 396 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼143.38ms] Passed 4 tests

Analyzing server-side resources used by Webico Maps Embed Flatsome Addons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1239.19 ▲17.70
Dashboard /wp-admin3.06 ▲0.0148.20 ▼2.18
Posts /wp-admin/edit.php3.11 ▲0.0149.68 ▲4.12
Add New Post /wp-admin/post-new.php5.42 ▼0.0193.22 ▼575.61
Media Library /wp-admin/upload.php3.00 ▲0.0036.96 ▲0.16

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Webico Maps Embed Flatsome Addons: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13116.18 ▲0.5510.87 ▲2.1349.80 ▼3.36
Dashboard /wp-admin2,973 ▲395.95 ▼0.21138.50 ▼10.38118.38 ▲0.79
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.1265.83 ▼10.0498.21 ▲2.24
Add New Post /wp-admin/post-new.php1,500 ▼17018.57 ▼0.71360.26 ▼14.67114.83 ▼4.56
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.03145.35 ▼21.82125.69 ▼0.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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 __() in wp-content/plugins/webico-maps-embed-flatsome-addons/inc/builder/wbc-maps.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webico-maps-embed-flatsome-addons/inc/shortcodes/wbc-maps.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: webico, flatsome addons

webico-maps-embed-flatsome-addons/wbc-maps-embed.php 69% from 13 tests

The entry point to "Webico Maps Embed Flatsome Addons" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires PHP: Required version must match the one declared in readme.txt ("5.6.30" instead of "5.6")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("webico-maps-embed-flatsome-addons.php" instead of "wbc-maps-embed.php")

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
Everything looks great! No dangerous files found in this plugin123 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3172284
SVG10139

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Constants2
▷ Global constants2100.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