Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.00ms] Passed 4 tests
This is a short check of server-side resources used by Correios - Etiqueta, Declaração Conteúdo & Sigep
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.74 ▲0.37 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.97 ▼4.24 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.08 ▼1.65 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 117.14 ▲23.20 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.73 ▼2.49 |
Etiqueta Correios /wp-admin/admin.php?page=woo-etiqueta-correios | 3.21 | 32.79 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Correios - Etiqueta, Declaração Conteúdo & Sigep: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲40 | 13.22 ▼1.18 | 2.03 ▲0.16 | 49.52 ▲3.20 |
Dashboard /wp-admin | 2,207 ▲4 | 4.84 ▼0.95 | 110.78 ▲15.28 | 39.64 ▲0.93 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.00 | 42.84 ▲5.07 | 35.28 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,527 ▲8 | 18.25 ▼4.86 | 604.50 ▼61.66 | 62.58 ▲2.03 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.10 | 98.97 ▼11.77 | 42.54 ▼0.22 |
Etiqueta Correios /wp-admin/admin.php?page=woo-etiqueta-correios | 1,463 | 8.40 | 215.18 | 65.24 |
Uninstaller [IO: ✅] [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
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: correios, pdf, woocommerce, mercalona, impressao
mercalona-woo-etiqueta-correios/woo-etiqueta-correios.php 85% from 13 tests
The entry point to "Correios - Etiqueta, Declaração Conteúdo & Sigep" version 1.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mercalona-woo-etiqueta-correios.php" instead of "woo-etiqueta-correios.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin419 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 88 | 45 | 416 |
JavaScript | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview 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.14 |
Average class complexity | 3.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 27 | 69.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 30.77% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin