84% mi-tienda-mercadolibre

Code Review | Mi Tienda MercadoLibre

WordPress plugin Mi Tienda MercadoLibre scored84%from 54 tests.

About plugin

  • Plugin page: mi-tienda-mercado...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.2.2
  • WordPress version: 6.3.1
  • First release: Dec 27, 2012
  • Latest release: Aug 14, 2019
  • Number of updates: 9
  • Update frequency: every 269.0 days
  • Top authors: hmgauna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,563 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.51ms] Passed 4 tests

This is a short check of server-side resources used by Mi Tienda MercadoLibre
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.37 ▼3.90
Dashboard /wp-admin3.31 ▼0.0446.75 ▼20.55
Posts /wp-admin/edit.php3.36 ▲0.0052.22 ▲2.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.90 ▼10.55
Media Library /wp-admin/upload.php3.23 ▲0.0037.39 ▲0.95

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Mi Tienda MercadoLibre
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.60 ▼0.991.69 ▼0.0845.14 ▲2.58
Dashboard /wp-admin2,221 ▲304.85 ▼1.05107.96 ▼9.5841.48 ▼2.91
Posts /wp-admin/edit.php2,100 ▲32.06 ▲0.0439.47 ▲3.2536.87 ▲0.65
Add New Post /wp-admin/post-new.php1,554 ▲1418.58 ▲0.34615.32 ▼21.8854.05 ▲0.76
Media Library /wp-admin/upload.php1,394 ▼94.21 ▼0.0195.46 ▼8.1344.73 ▼1.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mi-tienda-mercadolibre/0.3/tienda-mercadolibre.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mi-tienda-mercadolibre/tienda-mercadolibre.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

mi-tienda-mercadolibre/tienda-mercadolibre.php 92% from 13 tests

The main PHP file in "Mi Tienda MercadoLibre" ver. 0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mi-tienda-mercadolibre.php" instead of "tienda-mercadolibre.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected136 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24678112
PO File12116
CSS1008

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected