Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.50ms] Passed 4 tests
Analyzing server-side resources used by MIRATIO - Facturación electrónica Perú
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.05 ▲0.64 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.01 ▼4.48 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.73 ▲0.51 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.49 ▼11.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.23 ▼2.06 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for MIRATIO - Facturación electrónica Perú
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲45 | 13.99 ▼0.05 | 1.94 ▼0.24 | 39.19 ▼3.93 |
Dashboard /wp-admin | 2,209 ▲32 | 5.54 ▼0.13 | 87.84 ▼1.10 | 37.67 ▼7.03 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.02 ▼0.00 | 35.21 ▼7.65 | 33.67 ▼2.02 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.02 ▼0.22 | 636.71 ▲42.36 | 59.70 ▼40.78 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.22 ▲0.02 | 98.06 ▲2.82 | 44.09 ▲3.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/miratio/includes/miratio-lib.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/miratio/modules.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/miratio/includes/miratio-woocommerce-frontend.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/miratio/includes/miratio-admin-settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/miratio/includes/miratio-woocommerce-admin-front.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #5 in miratio/assets to your readme.txt
miratio/miratio.php 92% from 13 tests
The main PHP file in "MIRATIO - Facturación electrónica Perú" ver. 2.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,265 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 249 | 210 | 1,178 |
JavaScript | 1 | 12 | 11 | 78 |
CSS | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 14 | |
▷ Static methods | 8 | 57.14% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 54 | |
▷ Named functions | 54 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.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