Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 48.84 ▲9.99 |
Dashboard /wp-admin | 3.50 ▲0.19 | 53.21 ▲2.07 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 51.82 ▼3.57 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 99.98 ▼3.07 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.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 |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_avante_pricing |
widget_avante_stats |
widget_recent-posts |
widget_avante_testimonial |
widget_recent-comments |
widget_theysaidso_widget |
widget_avante_benefit |
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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 13.61 ▼1.00 | 2.01 ▲0.22 | 45.39 ▲1.97 |
Dashboard /wp-admin | 2,212 ▲35 | 5.66 ▲0.04 | 92.98 ▲1.03 | 42.99 ▲1.39 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 2.44 ▲0.41 | 39.80 ▼1.62 | 30.70 ▼9.24 |
Add New Post /wp-admin/post-new.php | 1,538 ▲3 | 23.65 ▲5.18 | 662.25 ▼36.86 | 36.52 ▼35.94 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.43 ▲0.14 | 108.48 ▼14.23 | 47.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
- > PHP Fatal error
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
Optimizations
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 234 | 616 | 1,877 |
JavaScript | 1 | 30 | 12 | 77 |
CSS | 1 | 0 | 0 | 31 |
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 code | 0.13 |
Average class complexity | 11.79 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 65 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 3 | 17.65% |
▷ Anonymous functions | 14 | 82.35% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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