68% mercadolibre-integration

Code Review | MercadoLibre Integration

WordPress plugin MercadoLibre Integration scored68%from 54 tests.

About plugin

  • Plugin page: mercadolibre-inte...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.4.5
  • WordPress version: 6.3.1
  • First release: Feb 24, 2013
  • Latest release: Feb 28, 2013
  • Number of updates: 11
  • Update frequency: every 0.6 days
  • Top authors: hernanjh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,837 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.93MB] [CPU: ▼35.37ms] Passed 4 tests

Server-side resources used by MercadoLibre Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.97 ▼9.47
Dashboard /wp-admin3.02 ▼0.2823.10 ▼29.86
Posts /wp-admin/edit.php3.02 ▼0.3425.32 ▼26.30
Add New Post /wp-admin/post-new.php3.02 ▼2.8725.04 ▼75.85
Media Library /wp-admin/upload.php3.02 ▼0.2126.05 ▼7.86
MercadoLibre Integration /wp-admin/options-general.php?page=mercadolibre-integration/mercadolibre-integration_options.php3.0225.91

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
options_mlInt
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by MercadoLibre Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.37 ▲0.032.19 ▲0.1740.99 ▼4.23
Dashboard /wp-admin2,199 ▲255.63 ▲0.0595.20 ▲1.2842.35 ▲1.46
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0240.31 ▲3.8238.49 ▲2.38
Add New Post /wp-admin/post-new.php1,539 ▲423.12 ▲4.91665.17 ▼21.7756.22 ▼11.20
Media Library /wp-admin/upload.php1,407 ▲74.27 ▲0.0997.10 ▼14.7342.80 ▼3.70
MercadoLibre Integration /wp-admin/options-general.php?page=mercadolibre-integration/mercadolibre-integration_options.php1,0452.0325.3428.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • options_mlInt
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=mercadolibre-integration/mercadolibre-integration_options.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=mercadolibre-integration/mercadolibre-integration_options.php
    • > Notice in wp-content/plugins/mercadolibre-integration/mercadolibre-integration_options.php+71
    Undefined index: action

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: options_page in wp-content/plugins/mercadolibre-integration/mercadolibre-integration_options.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mercadolibre-integration/mercadolibre-integration.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mercadolibre-integration/mercadolibre-integration_options.php:14
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/mercadolibre-integration/mercadolibre-integration_options_table.php on line 5
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/mercadolibre-integration/mercadolibre-integration_options_table.php on line 5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mercadolibre-integration/mercadolibre-integration_options_table.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: mercadolibre, products, integration, tienda, store

mercadolibre-integration/mercadolibre-integration.php Passed 13 tests

"MercadoLibre Integration" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
List your product catalog of MercadoLibre on your site WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin484 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP310849417
CSS10067

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
oferta.png15.27KB14.23KB▼ 6.85%