Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼8.16ms] Passed 4 tests
A check of server-side resources used by Paquete.MX
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 36.61 ▼4.56 |
Dashboard /wp-admin | 3.62 ▲0.32 | 44.66 ▼5.92 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 52.13 ▲4.93 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 80.06 ▼11.44 |
Media Library /wp-admin/upload.php | 3.55 ▲0.31 | 35.81 ▼10.72 |
Paquete.MX /wp-admin/admin.php?page=paquetemx | 3.49 | 30.60 |
Mis Envíos /wp-admin/admin.php?page=paquetemx_shippings | 3.51 | 32.14 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_paquetemx_shippings |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Paquete.MX
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.28 ▼0.99 | 1.62 ▼0.06 | 37.30 ▼3.26 |
Dashboard /wp-admin | 2,232 ▲47 | 4.90 ▼0.02 | 109.09 ▲5.95 | 67.07 ▲23.33 |
Posts /wp-admin/edit.php | 2,115 ▲47 | 2.00 ▼0.06 | 39.31 ▲1.23 | 36.81 ▲4.77 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.31 ▲0.25 | 777.81 ▲86.96 | 52.95 ▼2.23 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.18 ▼0.03 | 99.29 ▼9.57 | 84.74 ▲40.06 |
Paquete.MX /wp-admin/admin.php?page=paquetemx | 1,255 | 2.20 | 27.34 | 35.32 |
Mis Envíos /wp-admin/admin.php?page=paquetemx_shippings | 833 | 2.07 | 24.53 | 25.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% 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)
Smoke test failed, please fix the following
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=paquetemx
- > Notice in wp-content/plugins/paquete-mx/admin/settings_cb.php+65
Trying to access array offset on value of type bool
SRP 50% from 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
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/paquete-mx/admin/shipping_method.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paquete-mx/admin/admin_actions.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/paquete-mx/admin/products_shipping_settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI found ("#")
paquete-mx/paquetemx.php 92% from 13 tests
This is the main PHP file of "Paquete.MX" version 4.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("paquete-mx.php" instead of "paquetemx.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,876 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 335 | 198 | 1,876 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 16 | 84.21% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/admin_icon.png | 2.05KB | 0.87KB | ▼ 57.28% |