Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▲1,063.38ms] 50% from 4 tests
Analyzing server-side resources used by Maldita inflacion
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 1,259.39ms on /wp-admin/admin.php?page=malinf_admin)
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 1,063.38ms on /wp-admin/admin.php?page=malinf_admin)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 1,075.58 ▲1,035.47 |
Dashboard /wp-admin | 3.51 ▲0.16 | 1,071.37 ▲1,003.08 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 1,059.48 ▲1,013.63 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 1,288.83 ▲1,201.34 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 1,350.65 ▲1,317.92 |
Maldita Inflacion /wp-admin/admin.php?page=malinf_welcome | 3.34 | 1,103.24 |
Settings /wp-admin/admin.php?page=malinf_admin | 3.34 | 1,259.39 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options |
---|
malinf_apival |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
malinf_bkops |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Maldita inflacion
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲82 | 13.76 ▼0.61 | 1.69 ▼0.15 | 39.63 ▼7.58 |
Dashboard /wp-admin | 2,230 ▲42 | 4.83 ▼0.05 | 94.34 ▼19.96 | 39.72 ▼13.54 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.02 ▲0.00 | 33.57 ▼1.58 | 32.01 ▼5.08 |
Add New Post /wp-admin/post-new.php | 1,549 ▲35 | 21.10 ▲3.58 | 577.49 ▼74.85 | 46.77 ▼13.25 |
Media Library /wp-admin/upload.php | 1,412 ▲30 | 4.18 ▼0.01 | 104.36 ▲5.11 | 44.99 ▲1.36 |
Maldita Inflacion /wp-admin/admin.php?page=malinf_welcome | 1,026 | 2.01 | 22.12 | 51.04 |
Settings /wp-admin/admin.php?page=malinf_admin | 908 | 2.20 | 25.62 | 29.99 |
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
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- malinf_apival
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- malinf_bkops
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function MALINF\\plugin_dir_path() in wp-content/plugins/maldita-inflacion/malinf.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% 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:
- Screenshots: Add images for these screenshots: #1 (Editar precio en producto), #2 (editar TDC), #3 (opciones backend)
maldita-inflacion/malinf.php 85% from 13 tests
The principal PHP file in "Maldita inflacion" v. 1.0.4 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("maldita-inflacion.php" instead of "malinf.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
No dangerous file extensions were detected679 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 95 | 69 | 540 |
HTML | 1 | 29 | 0 | 78 |
JavaScript | 1 | 11 | 4 | 31 |
CSS | 1 | 5 | 1 | 30 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 11 | 22.92% |
▷ Public methods | 30 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 37.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin