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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼12.90ms] Passed 4 tests
Server-side resources used by Tipo Documento Perú
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.25 ▼1.83 |
Dashboard /wp-admin | 3.37 ▲0.03 | 42.99 ▼17.72 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 44.01 ▼5.26 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 80.92 ▼26.80 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.78 ▲3.06 |
Document Type /wp-admin/admin.php?page=tipo_settings | 3.24 | 33.18 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Tipo Documento Perú
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.23 ▼0.42 | 1.68 ▼0.03 | 41.23 ▲0.68 |
Dashboard /wp-admin | 2,201 ▲21 | 5.56 ▼0.10 | 87.02 ▼4.33 | 36.91 ▼7.23 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.02 ▲0.05 | 35.41 ▼0.89 | 32.06 ▼4.69 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.03 ▼0.17 | 603.21 ▼27.36 | 66.51 ▼4.20 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▼0.00 | 102.82 ▼4.10 | 44.83 ▼3.67 |
Document Type /wp-admin/admin.php?page=tipo_settings | 900 | 2.13 | 26.75 | 29.92 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=tipo_settings
- > Notice in wp-content/plugins/tipo-documento-peru/tipo_admin.php+60
Undefined index: tab
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tipo_settings
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: per, documento, dni, ruc, pasaporte
tipo-documento-peru/tipo-documento.php 77% from 13 tests
"Tipo Documento Perú" version 0.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tipo-documento-peru.php" instead of "tipo-documento.php")
- Requires at least: The required version number must match the one declared in readme.txt ("5.2" instead of "2.6")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin436 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 48 | 27 | 278 |
PO File | 1 | 29 | 32 | 88 |
JavaScript | 1 | 12 | 1 | 70 |
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.57 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin