89% echbay-for-flatsome

Code Review | EchBay For Flatsome

WordPress plugin EchBay For Flatsome scored89%from 54 tests.

About plugin

  • Plugin page: echbay-for-flatsome
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2
  • WordPress version: 6.3.1
  • First release: Mar 10, 2021
  • Latest release: Jun 26, 2023
  • Number of updates: 12
  • Update frequency: every 69.8 days
  • Top authors: itvn9online (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,006 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.59ms] Passed 4 tests

Server-side resources used by EchBay For Flatsome
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.08 ▼4.14
Dashboard /wp-admin3.37 ▲0.0751.65 ▲0.71
Posts /wp-admin/edit.php3.48 ▲0.1354.26 ▲5.94
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.06 ▼5.13
Media Library /wp-admin/upload.php3.29 ▲0.0639.06 ▲2.22
Webgiare Plugins /wp-admin/admin.php?page=echbay-plugins-menu3.2633.03
For Flatsome /wp-admin/admin.php?page=echbay-for-flatsome3.2632.30

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for EchBay For Flatsome
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲5314.35 ▼0.011.97 ▼0.6343.16 ▼2.70
Dashboard /wp-admin2,242 ▲655.64 ▲0.0693.20 ▼7.5140.49 ▼3.12
Posts /wp-admin/edit.php2,150 ▲502.01 ▼0.0336.20 ▼0.2933.47 ▼3.48
Add New Post /wp-admin/post-new.php1,564 ▲3823.00 ▼0.74687.07 ▲55.6052.01 ▼0.99
Media Library /wp-admin/upload.php1,444 ▲444.23 ▲0.00100.78 ▼1.6344.91 ▲0.29
Webgiare Plugins /wp-admin/admin.php?page=echbay-plugins-menu1,0641.7629.6129.42
For Flatsome /wp-admin/admin.php?page=echbay-for-flatsome1,0641.7226.3328.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (Setting in admin.) image missing
You can look at the official readme.txt

echbay-for-flatsome/eb.php 69% from 13 tests

The main file in "EchBay For Flatsome" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("echbay-for-flatsome.php" instead of "eb.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Description: The description should be shorter than 140 characters (currently 217 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin316 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP1076309
CSS2002
JavaScript2002
Markdown1002
HTML1001

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.33
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
4 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
favicon-full.png53.11KB10.79KB▼ 79.67%
favicon.png2.23KB2.27KB0.00%
favicon_wgr.png2.23KB2.27KB0.00%
favicon_eb.png3.39KB3.51KB0.00%