10% avantex-companion

Code Review | Avantex Companion

WordPress plugin Avantex Companion scored10%from 54 tests.

About plugin

  • Plugin page: avantex-companion
  • Plugin version: 0.1.7
  • 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: Apr 4, 2023
  • Latest release: Aug 30, 2023
  • Number of updates: 26
  • Update frequency: every 5.7 days
  • Top authors: FARAZFRANK (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /4,399 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > 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: ▼4.59ms] Passed 4 tests

An overview of server-side resources used by Avantex Companion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.44 ▼1.68
Dashboard /wp-admin3.31 ▲0.0150.98 ▼3.49
Posts /wp-admin/edit.php3.37 ▲0.0150.75 ▼1.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.12 ▼10.98
Media Library /wp-admin/upload.php3.24 ▲0.0135.95 ▼2.20

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 110 new files
Database: no new tables, 7 new options
New WordPress options
fresh_website_activate
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Avantex Companion
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.25 ▼0.111.81 ▲0.0440.58 ▼7.59
Dashboard /wp-admin2,198 ▲215.58 ▲0.0583.06 ▼10.7743.38 ▲1.95
Posts /wp-admin/edit.php2,112 ▲152.00 ▲0.0539.59 ▲4.1835.72 ▲0.23
Add New Post /wp-admin/post-new.php1,528 ▼722.98 ▲4.83605.80 ▼59.2467.68 ▼4.96
Media Library /wp-admin/upload.php1,403 ▲64.22 ▼0.0199.39 ▼11.3746.83 ▲3.94

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
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • fresh_website_activate
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/avantex-companion/inc/avantex/front-page/index-testimonial.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/avantex-companion/inc/avantex/front-page/index-carousel.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/avantex-companion/inc/avantex/front-page/index-callout.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/avantex-companion/inc/avantex/demo-content/setup.php:124
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/avantex-companion/inc/avantex/front-page/index-funfact.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/avantex-companion/inc/avantex/front-page/index-portfolio.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/avantex-companion/inc/avantex/front-page/index-team.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/avantex-companion/inc/avantex/front-page/index-sponsor.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/avantex-companion/inc/avantex/front-page/index-about.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/avantex-companion/inc/avantex/front-page/index-news.php:12

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 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Requires php: Version not formatted correctly
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

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

"Avantex Companion" version 0.1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin10,858 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
XML42954269,874
PHP14108132984

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.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
23 PNG files occupy 1.66MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/avantex/img/clients/client-construction-4.png22.11KB9.90KB▼ 55.22%
inc/avantex/img/clients/client-auto2.png48.54KB17.04KB▼ 64.89%
inc/avantex/img/funfact-shape.png115.26KB48.54KB▼ 57.88%
inc/avantex/img/slider/arrow.png18.05KB9.16KB▼ 49.27%
inc/avantex/img/clients/client-2.png7.99KB7.86KB▼ 1.63%