83% maldita-inflacion

Code Review | Maldita inflacion

WordPress plugin Maldita inflacion scored83%from 54 tests.

About plugin

  • Plugin page: maldita-inflacion
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.9-6.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2022
  • Latest release: Mar 3, 2023
  • Number of updates: 17
  • Update frequency: every 7.2 days
  • Top authors: sebastopolys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /686 total downloads

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)
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.211,075.58 ▲1,035.47
Dashboard /wp-admin3.51 ▲0.161,071.37 ▲1,003.08
Posts /wp-admin/edit.php3.56 ▲0.201,059.48 ▲1,013.63
Add New Post /wp-admin/post-new.php6.03 ▲0.141,288.83 ▲1,201.34
Media Library /wp-admin/upload.php3.43 ▲0.201,350.65 ▲1,317.92
Maldita Inflacion /wp-admin/admin.php?page=malinf_welcome3.341,103.24
Settings /wp-admin/admin.php?page=malinf_admin3.341,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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8213.76 ▼0.611.69 ▼0.1539.63 ▼7.58
Dashboard /wp-admin2,230 ▲424.83 ▼0.0594.34 ▼19.9639.72 ▼13.54
Posts /wp-admin/edit.php2,116 ▲272.02 ▲0.0033.57 ▼1.5832.01 ▼5.08
Add New Post /wp-admin/post-new.php1,549 ▲3521.10 ▲3.58577.49 ▼74.8546.77 ▼13.25
Media Library /wp-admin/upload.php1,412 ▲304.18 ▼0.01104.36 ▲5.1144.99 ▲1.36
Maldita Inflacion /wp-admin/admin.php?page=malinf_welcome1,0262.0122.1251.04
Settings /wp-admin/admin.php?page=malinf_admin9082.2025.6229.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

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)
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP139569540
HTML129078
JavaScript111431
CSS15130

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 code0.27
Average class complexity5.83
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods48
▷ Static methods1122.92%
▷ Public methods3062.50%
▷ Protected methods00.00%
▷ Private methods1837.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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