78% envo-extra

Code Review | Envo Extra

WordPress plugin Envo Extra scored78%from 54 tests.

About plugin

  • Plugin page: envo-extra
  • Plugin version: 1.8.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 18, 2022
  • Latest release: Nov 6, 2023
  • Number of updates: 68
  • Update frequency: every 5.7 days
  • Top authors: envothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /132,595 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲3.88MB] [CPU: ▲12.81ms] Passed 4 tests

A check of server-side resources used by Envo Extra
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /7.32 ▲3.8558.78 ▲16.57
Dashboard /wp-admin7.25 ▲3.9061.11 ▼1.73
Posts /wp-admin/edit.php7.27 ▲3.9162.01 ▲14.61
Add New Post /wp-admin/post-new.php9.73 ▲3.84118.46 ▲24.13
Media Library /wp-admin/upload.php7.25 ▲4.0257.57 ▲21.78
Install Demos /wp-admin/themes.php?page=envothemes-panel-install-demos7.3948.38

Server storage [IO: ▲5.76MB] [DB: ▲0.24MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 523 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Envo Extra
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲13513.42 ▼0.949.19 ▲7.6341.48 ▲4.10
Dashboard /wp-admin2,201 ▲245.60 ▼0.0184.14 ▼15.8037.69 ▼5.39
Posts /wp-admin/edit.php2,106 ▲62.03 ▲0.0038.67 ▲0.6330.63 ▼5.62
Add New Post /wp-admin/post-new.php1,531 ▲523.05 ▲0.05624.95 ▼61.6254.24 ▲2.28
Media Library /wp-admin/upload.php1,409 ▲154.17 ▼0.0296.87 ▼4.1042.33 ▼2.52
Install Demos /wp-admin/themes.php?page=envothemes-panel-install-demos1,1302.3230.0432.27

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/envo-extra/controls/responsive-devices/control-responsive-devices-typography.php
    • > /wp-content/plugins/envo-extra/controls/responsive-devices/control-responsive-devices.php
  • 80× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Field\\ReactSelect' not found in wp-content/plugins/envo-extra/include/packages/kirki-framework/control-select/src/Field/Select.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Field\\Radio' not found in wp-content/plugins/envo-extra/include/packages/kirki-framework/control-radio/src/Field/Radio_Buttonset.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Control\\Base' not found in wp-content/plugins/envo-extra/include/packages/kirki-framework/control-sortable/src/Control/Sortable.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Field\\Select' not found in wp-content/plugins/envo-extra/include/packages/kirki-framework/control-select/src/Field/Dropdown_Pages.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Control\\Base' not found in wp-content/plugins/envo-extra/include/packages/kirki-framework/control-color-palette/src/Control/Color_Palette.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Field' not found in wp-content/plugins/envo-extra/include/packages/kirki-framework/field-background/src/Background.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Field\\Checkbox' not found in wp-content/plugins/envo-extra/include/packages/kirki-framework/control-checkbox/src/Field/Checkbox_Toggle.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Field' not found in wp-content/plugins/envo-extra/include/packages/kirki-framework/control-sortable/src/Field/Sortable.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Field' not found in wp-content/plugins/envo-extra/include/packages/kirki-framework/control-dashicons/src/Field/Dashicons.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki' not found in wp-content/plugins/envo-extra/options/pro.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
There were not plugin tags detected

envo-extra/envo-extra.php 92% from 13 tests

The main file in "Envo Extra" v. 1.8.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "3.3.0")

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
Everything looks great! No dangerous files found in this plugin62,640 lines of code in 393 files:
LanguageFilesBlank linesComment linesLines of code
PHP1924,92311,10132,091
JSON380011,626
JavaScript982,0932,67411,396
CSS36173536,299
Markdown2720801,110
SVG10091
YAML17027

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity16.61
▷ Minimum class complexity1.00
▷ Maximum class complexity196.00
Average method complexity4.34
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces18
Interfaces0
Traits0
Classes157
▷ Abstract classes10.64%
▷ Concrete classes15699.36%
▷ Final classes117.05%
Methods725
▷ Static methods14219.59%
▷ Public methods57979.86%
▷ Protected methods11415.72%
▷ Private methods324.41%
Functions122
▷ Named functions8468.85%
▷ Anonymous functions3831.15%
Constants15
▷ Global constants1493.33%
▷ Class constants16.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.41MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/envothemes-demo-import/img/et-logo.png0.49KB0.33KB▼ 33.53%
lib/envothemes-demo-import/img/envo-shopper.png73.10KB21.66KB▼ 70.38%
include/assets/images/kirki-bottom.png1.51KB1.09KB▼ 27.89%
include/assets/images/1c.png0.77KB0.15KB▼ 80.03%
lib/envothemes-demo-import/img/envo-marketplace.png93.53KB30.03KB▼ 67.89%