78% avante-theme-extensions

Code Review | Avante Theme Extensions

WordPress plugin Avante Theme Extensions scored78%from 54 tests.

About plugin

  • Plugin page: avante-theme-exte...
  • Plugin version: 1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 6.3.1
  • First release: Jun 23, 2021
  • Latest release: May 4, 2022
  • Number of updates: 7
  • Update frequency: every 45.1 days
  • Top authors: themely (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,780 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼0.66ms] Passed 4 tests

A check of server-side resources used by Avante Theme Extensions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2048.84 ▲9.99
Dashboard /wp-admin3.50 ▲0.1953.21 ▲2.07
Posts /wp-admin/edit.php3.61 ▲0.2551.82 ▼3.57
Add New Post /wp-admin/post-new.php6.08 ▲0.1999.98 ▼3.07
Media Library /wp-admin/upload.php3.42 ▲0.1938.68 ▲1.92

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 10 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Avante Theme Extensions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4513.61 ▼1.002.01 ▲0.2245.39 ▲1.97
Dashboard /wp-admin2,212 ▲355.66 ▲0.0492.98 ▲1.0342.99 ▲1.39
Posts /wp-admin/edit.php2,119 ▲162.44 ▲0.4139.80 ▼1.6230.70 ▼9.24
Add New Post /wp-admin/post-new.php1,538 ▲323.65 ▲5.18662.25 ▼36.8636.52 ▼35.94
Media Library /wp-admin/upload.php1,417 ▲204.43 ▲0.14108.48 ▼14.2347.11 ▼4.42

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_avante_stats
    • can_compress_scripts
    • widget_avante_benefit
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_avante_testimonial
    • db_upgraded
    • widget_avante_pricing
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/avante-theme-extensions/avante-extensions.php
  • 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/avante-theme-extensions/widgets/pricing_widget.php:7
    • > PHP Warning
      require(AVANTE_EXTENSIONS_PATHwidgets/benefit_widget.php): failed to open stream: No such file or directory in wp-content/plugins/avante-theme-extensions/inc/widgets.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/avante-theme-extensions/widgets/hero_widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/avante-theme-extensions/widgets/bar_widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/avante-theme-extensions/widgets/skills_widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/avante-theme-extensions/widgets/counter_widget.php:7
    • > PHP Fatal error
      require(): Failed opening required 'AVANTE_EXTENSIONS_PATHwidgets/benefit_widget.php' (include_path='.:/usr/share/php') in wp-content/plugins/avante-theme-extensions/inc/widgets.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/avante-theme-extensions/widgets/showcase_widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/avante-theme-extensions/widgets/testimonial_widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/avante-theme-extensions/widgets/service_widget.php:7

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: The plugin tags were not defined
The official readme.txt is a good inspiration

avante-theme-extensions/avante-extensions.php 92% from 13 tests

"Avante Theme Extensions" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("avante-theme-extensions.php" instead of "avante-extensions.php")

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
There were no executable files found in this plugin1,985 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity11.79
▷ Minimum class complexity3.00
▷ Maximum class complexity28.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods65100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions317.65%
▷ Anonymous functions1482.35%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin