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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.44 ▼1.68 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.98 ▼3.49 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.75 ▼1.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 92.12 ▼10.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.25 ▼0.11 | 1.81 ▲0.04 | 40.58 ▼7.59 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▲0.05 | 83.06 ▼10.77 | 43.38 ▲1.95 |
Posts /wp-admin/edit.php | 2,112 ▲15 | 2.00 ▲0.05 | 39.59 ▲4.18 | 35.72 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,528 ▼7 | 22.98 ▲4.83 | 605.80 ▼59.24 | 67.68 ▼4.96 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.22 ▼0.01 | 99.39 ▼11.37 | 46.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 4 | 295 | 426 | 9,874 |
PHP | 14 | 108 | 132 | 984 |
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 code | 0.20 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 5.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/avantex/img/clients/client-construction-4.png | 22.11KB | 9.90KB | ▼ 55.22% |
inc/avantex/img/clients/client-auto2.png | 48.54KB | 17.04KB | ▼ 64.89% |
inc/avantex/img/funfact-shape.png | 115.26KB | 48.54KB | ▼ 57.88% |
inc/avantex/img/slider/arrow.png | 18.05KB | 9.16KB | ▼ 49.27% |
inc/avantex/img/clients/client-2.png | 7.99KB | 7.86KB | ▼ 1.63% |