10% envo-companion

Code Review | Envo Companion

WordPress plugin Envo Companion scored10%from 54 tests.

About plugin

  • Plugin page: envo-companion
  • Plugin version: 0.0.6
  • PHP compatiblity: 4.0 tested up to 8.0.26+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 15, 2023
  • Latest release: Aug 11, 2023
  • Number of updates: 7
  • Update frequency: every 8.1 days
  • Top authors: webenvo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,328 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.17ms] Passed 4 tests

Server-side resources used by Envo Companion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.79 ▼5.09
Dashboard /wp-admin3.31 ▲0.0147.20 ▼1.50
Posts /wp-admin/edit.php3.37 ▲0.0146.13 ▼1.89
Add New Post /wp-admin/post-new.php5.89 ▲0.01101.11 ▲13.83
Media Library /wp-admin/upload.php3.24 ▲0.0035.22 ▼0.19

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
fresh_website_activate
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Envo Companion
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲6014.74 ▲0.551.73 ▼0.2740.76 ▼2.59
Dashboard /wp-admin2,203 ▲185.79 ▼0.04101.25 ▲2.5741.65 ▼3.18
Posts /wp-admin/edit.php2,098 ▲62.05 ▲0.0233.10 ▼7.7732.94 ▼4.00
Add New Post /wp-admin/post-new.php1,542 ▼023.34 ▲4.86652.93 ▲4.8753.29 ▲3.15
Media Library /wp-admin/upload.php1,385 ▼34.29 ▲0.0196.94 ▼1.2841.87 ▼0.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • fresh_website_activate

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/envo-companion/inc/webenvo/front-page/index-carousel.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/envo-companion/inc/webenvo/front-page/index-portfolio.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/envo-companion/inc/webenvo/front-page/index-team.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/envo-companion/inc/webenvo/front-page/index-sponsor.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/envo-companion/inc/webenvo/front-page/index-funfact.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/envo-companion/inc/webenvo/front-page/index-testimonial.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/envo-companion/inc/webenvo/front-page/index-news.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/envo-companion/inc/webenvo/front-page/index-about.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/envo-companion/inc/webenvo/front-page/index-callout.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/envo-companion/inc/webenvo/front-page/index-service.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Requires php: Version format is invalid
Please take inspiration from this readme.txt

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

The entry point to "Envo Companion" version 0.0.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Requires PHP: Required version number formatted incorrectly (ex. "7.0" instead of "4.0 tested up to 8.0.26")

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
Good job! No executable or dangerous file extensions detected2,500 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
XML112241,623
PHP14103126877

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity5.00
▷ Minimum method complexity5.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods1100.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.61MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/webenvo/img/slider/arrow.png18.05KB9.16KB▼ 49.27%
inc/webenvo/img/testimonial/quote.png0.56KB0.46KB▼ 18.25%
inc/webenvo/img/clients/client-3.png35.46KB9.41KB▼ 73.48%
inc/webenvo/img/demo-screenshots/webenvo.png339.82KB348.75KB0.00%
inc/webenvo/img/service/service1.png8.94KB4.53KB▼ 49.31%