Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.22MB] [CPU: ▼4.50ms] Passed 4 tests
An overview of server-side resources used by Megabits Control Gastos
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.58 ▲1.12 | 39.51 ▼6.22 |
Dashboard /wp-admin | 4.53 ▲1.22 | 48.53 ▲1.45 |
Posts /wp-admin/edit.php | 4.58 ▲1.22 | 47.53 ▼5.29 |
Add New Post /wp-admin/post-new.php | 7.33 ▲1.44 | 91.74 ▼7.95 |
Media Library /wp-admin/upload.php | 4.54 ▲1.31 | 42.32 ▲5.74 |
Todos los Gastos /wp-admin/edit.php?post_type=gastos | 4.49 | 42.30 |
Categorías /wp-admin/edit-tags.php?taxonomy=categoria_gasto&post_type=gastos | 4.54 | 39.40 |
Calendario /wp-admin/edit.php?post_type=gastos&page=gastos-calendar | 4.35 | 35.64 |
Info /wp-admin/edit.php?post_type=gastos&page=gastos-info | 4.35 | 34.01 |
Proveedores /wp-admin/edit-tags.php?taxonomy=proveedor_gasto&post_type=gastos | 4.49 | 38.39 |
Facturas /wp-admin/edit.php?post_type=gastos&page=gastos-facturas | 4.34 | 35.51 |
Añadir Nuevo /wp-admin/post-new.php?post_type=gastos | 4.70 | 60.27 |
Server storage [IO: ▲11.74MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 376 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_mgb_events |
New WordPress options |
---|
acf_version |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
mcg_need_update_events |
Browser metrics Passed 4 tests
Checking browser requirements for Megabits Control Gastos
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲148 | 13.93 ▼0.38 | 1.60 ▼0.35 | 38.36 ▼9.87 |
Dashboard /wp-admin | 2,267 ▲76 | 5.71 ▼0.18 | 108.25 ▲2.24 | 91.67 ▲48.03 |
Posts /wp-admin/edit.php | 2,176 ▲87 | 2.60 ▲0.59 | 41.01 ▼0.09 | 36.04 ▲0.31 |
Add New Post /wp-admin/post-new.php | 11,666 ▲10,133 | 29.10 ▲5.93 | 1,257.31 ▲577.87 | 41.99 ▼29.56 |
Media Library /wp-admin/upload.php | 2,016 ▲625 | 9.00 ▲4.82 | 236.14 ▲133.30 | 54.16 ▲12.33 |
Todos los Gastos /wp-admin/edit.php?post_type=gastos | 1,167 | 2.59 | 46.57 | 32.42 |
Categorías /wp-admin/edit-tags.php?taxonomy=categoria_gasto&post_type=gastos | 1,408 | 3.55 | 45.09 | 45.11 |
Calendario /wp-admin/edit.php?post_type=gastos&page=gastos-calendar | 1,531 | 4.24 | 103.93 | 46.19 |
Info /wp-admin/edit.php?post_type=gastos&page=gastos-info | 984 | 2.35 | 31.65 | 26.85 |
Proveedores /wp-admin/edit-tags.php?taxonomy=proveedor_gasto&post_type=gastos | 1,411 | 3.56 | 49.75 | 47.96 |
Facturas /wp-admin/edit.php?post_type=gastos&page=gastos-facturas | 1,031 | 2.54 | 30.86 | 28.38 |
Añadir Nuevo /wp-admin/post-new.php?post_type=gastos | 2,915 | 9.57 | 185.58 | 49.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_mgb_events
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- acf_version
- theysaidso_admin_options
- mcg_need_update_events
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=gastos&page=gastos-facturas
- > Notice in wp-content/plugins/megabits-control-gastos/includes/mcg-listing.php+214
Undefined variable: select_mes
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=gastos&page=gastos-facturas
- > Notice in wp-content/plugins/megabits-control-gastos/includes/mcg-listing.php+231
Undefined variable: select_trim
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=gastos&page=gastos-facturas
- > Notice in wp-content/plugins/megabits-control-gastos/includes/mcg-pagination.php+37
Undefined variable: html
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/megabits-control-gastos/includes/mgb_fecth_events.php
- 85× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/megabits-control-gastos/includes/acf/includes/admin/views/field-group-pro-features.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/megabits-control-gastos/includes/acf/includes/acf-field-functions.php:4
- > PHP Notice
Undefined variable: rule in wp-content/plugins/megabits-control-gastos/includes/acf/includes/admin/views/html-location-rule.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/megabits-control-gastos/includes/acf/includes/fields/class-acf-field-number.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/megabits-control-gastos/includes/acf/includes/admin/views/html-location-rule.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/megabits-control-gastos/includes/acf/includes/fields/class-acf-field-email.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/megabits-control-gastos/includes/mcg-listing.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/megabits-control-gastos/includes/acf/includes/fields/class-acf-field-password.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/megabits-control-gastos/includes/acf/includes/forms/form-taxonomy.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/megabits-control-gastos/includes/acf/includes/api/api-helpers.php:93
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=gastos
- > Javascript (severe) in unknown
https://cdn.jsdelivr.net/npm/fullcalendar/index.global.min.js 5:278720 Uncaught TypeError: Cannot read properties of null (reading 'isConnected')
- > GET request to /wp-admin/edit.php?post_type=gastos
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'." "TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'.\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/megabits-control-gastos/js/gastos_admin.js?ver=6.3.1:37:14)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit.php?post_type=gastos
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: gastos, facturas, costs control
megabits-control-gastos/megabits-control-gastos.php 92% from 13 tests
The primary PHP file in "Megabits Control Gastos" version 2.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 detected141,856 lines of code in 307 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 44 | 35,408 | 60,493 | 71,932 |
JavaScript | 19 | 5,275 | 7,359 | 38,878 |
PHP | 148 | 8,401 | 18,386 | 20,236 |
CSS | 18 | 685 | 1,467 | 10,441 |
JSON | 1 | 0 | 0 | 218 |
SVG | 76 | 0 | 0 | 137 |
Markdown | 1 | 11 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 15.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 102 | |
▷ Abstract classes | 2 | 1.96% |
▷ Concrete classes | 100 | 98.04% |
▷ Final classes | 0 | 0.00% |
Methods | 784 | |
▷ Static methods | 1 | 0.13% |
▷ Public methods | 766 | 97.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 2.30% |
Functions | 467 | |
▷ Named functions | 464 | 99.36% |
▷ Anonymous functions | 3 | 0.64% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 9.91KB | 2.79KB | ▼ 71.87% |
includes/acf/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png | 3.68KB | 4.17KB | 0.00% |
includes/acf/assets/inc/select2/3/select2x2.png | 0.64KB | 0.77KB | 0.00% |
includes/acf/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png | 0.08KB | 0.08KB | 0.00% |
assets/banner-772x250.png | 27.67KB | 10.80KB | ▼ 60.98% |