Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.54ms] Passed 4 tests
Server-side resources used by Integrador Donuz Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.64 ▼0.37 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.87 ▼14.06 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 51.21 ▼0.56 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 104.05 ▲3.92 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.37 ▼7.18 |
Donuz /wp-admin/admin.php?page=integrador_donuz | 3.23 | 33.78 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/donuz/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
dnz_log_exec |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
dnz_date_start |
widget_recent-comments |
Browser metrics Passed 4 tests
Integrador Donuz Woocommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲94 | 13.71 ▼0.84 | 2.09 ▼0.03 | 41.27 ▼0.38 |
Dashboard /wp-admin | 2,233 ▲30 | 4.92 ▼0.98 | 115.87 ▲0.54 | 43.88 ▼2.93 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 2.24 ▲0.20 | 39.88 ▼1.56 | 34.80 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,540 ▲4 | 23.24 ▲0.16 | 648.47 ▼41.51 | 67.30 ▲13.50 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.28 ▲0.05 | 116.50 ▲11.06 | 47.76 ▲0.38 |
Donuz /wp-admin/admin.php?page=integrador_donuz | 840 | 1.76 | 26.42 | 24.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/donuz/class/views/inicio.php:5
- > PHP Fatal error
Uncaught Error: Class 'Class_dnz_curl' not found in wp-content/plugins/donuz/class/Class_dnz_cron.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/donuz/integrador-donuz-woocommerce.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== donuz ===
)
donuz/integrador-donuz-woocommerce.php 85% from 13 tests
The principal PHP file in "Integrador Donuz Woocommerce" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("donuz.php" instead of "integrador-donuz-woocommerce.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 188 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected307 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 62 | 54 | 294 |
JavaScript | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 73.33% |
▷ Protected methods | 1 | 6.67% |
▷ Private methods | 3 | 20.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected