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
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼10.93ms] Passed 4 tests
An overview of server-side resources used by Pakke Envíos
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.52 ▼4.51 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.34 ▲1.91 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 45.08 ▼14.79 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.78 ▼26.33 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.36 ▲3.15 |
Pakke /wp-admin/options-general.php?page=pakke | 3.29 | 33.81 |
Server storage [IO: ▲1.98MB] [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: 73 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_guia |
wp_guiasxorden |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Pakke Envíos
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲217 | 14.22 ▼0.16 | 4.76 ▲2.81 | 38.11 ▼14.27 |
Dashboard /wp-admin | 2,235 ▲50 | 5.46 ▼0.36 | 114.56 ▲8.20 | 85.13 ▲44.98 |
Posts /wp-admin/edit.php | 2,139 ▲47 | 2.46 ▲0.44 | 50.16 ▲11.48 | 27.62 ▼8.65 |
Add New Post /wp-admin/post-new.php | 1,708 ▲180 | 23.77 ▲5.55 | 668.85 ▲36.45 | 26.79 ▼24.21 |
Media Library /wp-admin/upload.php | 1,500 ▲112 | 4.93 ▲0.73 | 112.61 ▲7.09 | 43.18 ▼1.01 |
Pakke /wp-admin/options-general.php?page=pakke | 2,423 | 2.30 | 51.97 | 25.14 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pakke
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/pakke/admin/class-pakke-admin.php+164
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/pakke/public/partials/pakke-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pakke/admin/partials/pakke-admin-display.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pakke
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=pakke 0:0 Uncaught SyntaxError: Unexpected token '
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
pakke/pakke.php Passed 13 tests
The principal PHP file in "Pakke Envíos" v. 1.0.2 is loaded by WordPress automatically on each request
17 characters long description:
Envios con Pakke.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin20,423 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 1,752 | 47 | 11,953 |
JavaScript | 5 | 2,102 | 7,069 | 6,813 |
PHP | 13 | 446 | 698 | 1,526 |
SVG | 7 | 4 | 1 | 91 |
JSON | 2 | 0 | 0 | 40 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 6 | 9.68% |
▷ Public methods | 57 | 91.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.06% |
Functions | 16 | |
▷ Named functions | 16 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
26 PNG files occupy 0.55MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/docs/proceso-compra-img3.png | 10.14KB | 4.63KB | ▼ 54.40% |
admin/img/docs/guias-img1.png | 26.51KB | 9.83KB | ▼ 62.92% |
admin/img/docs/ajustes-woo-img4.png | 39.07KB | 15.07KB | ▼ 61.44% |
admin/img/docs/ajustes-img10.png | 38.32KB | 14.65KB | ▼ 61.76% |
admin/img/docs/proceso-compra2-img2.png | 16.75KB | 7.34KB | ▼ 56.20% |