Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▲1.66ms] Passed 4 tests
Server-side resources used by Vendus
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.74 ▼3.58 |
Dashboard /wp-admin | 3.44 ▲0.13 | 50.40 ▼3.06 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 55.14 ▲4.69 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 101.59 ▲8.58 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 42.21 ▲9.18 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Vendus
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.30 ▼1.45 | 1.78 ▼0.15 | 40.10 ▼5.47 |
Dashboard /wp-admin | 2,206 ▲18 | 5.82 ▼0.06 | 99.50 ▼19.74 | 39.39 ▼3.01 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.03 | 39.06 ▲2.24 | 34.22 ▲0.79 |
Add New Post /wp-admin/post-new.php | 1,520 ▼4 | 23.22 ▲0.17 | 649.80 ▲51.74 | 62.51 ▲9.07 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.28 ▲0.11 | 107.58 ▲0.84 | 46.30 ▲2.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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 fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/vendus/views/config.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/vendus/vendus.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (Configuração do Plugin)
vendus/vendus.php Passed 13 tests
The main file in "Vendus" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
38 characters long description:
Integração Woocommerce com o Vendus.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin865 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 136 | 29 | 819 |
Markdown | 1 | 9 | 0 | 46 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 26 | 41.27% |
▷ Public methods | 59 | 93.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.35% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 17 | 94.44% |
▷ Class constants | 1 | 5.56% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo_menu.png | 0.96KB | 0.49KB | ▼ 49.49% |