56% sistemex-inbound

Code Review | Sistemex – Inbound

WordPress plugin Sistemex – Inbound scored56%from 54 tests.

About plugin

  • Plugin page: sistemex-inbound
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 5, 2019
  • Latest release: Oct 31, 2019
  • Number of updates: 40
  • Update frequency: every 2.4 days
  • Top authors: sistemex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /609 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▲61.83ms] Passed 4 tests

Analyzing server-side resources used by Sistemex – Inbound
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.38105.33 ▲60.77
Dashboard /wp-admin3.50 ▲0.19111.02 ▲57.87
Posts /wp-admin/edit.php3.47 ▲0.11108.03 ▲61.77
Add New Post /wp-admin/post-new.php6.08 ▲0.20161.60 ▲66.91
Media Library /wp-admin/upload.php3.42 ▲0.19122.30 ▲90.36
CTAs /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-table.php3.4096.22
Editar Keyword /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-interlinking-page-edit.php3.4098.82
P/S & BJ /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-table-ps-by.php3.4696.13
Editar CTA /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-cta-page-edit.php3.4393.13
Sistemex Inbound /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-dashboard.php3.3998.49
Editar Banner /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-banners-page-edit.php3.4495.10
Keywords /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-interlinking-table.php3.40101.11
Banners /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-table-banners.php3.4098.27
Insercción de Banner /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-banners-page.php3.43103.91
Insercción de CTA /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-cta-page.php3.4299.33

Server storage [IO: ▲1.73MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: 6 new tables, 6 new options
New tables
sistemex_interlinking
sistemex_productos_servicios
sistemex_buyer_journey
sistemex_inbound_cta
sistemex_inbound_banners
sistemex_interlinking_configuracion
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Sistemex – Inbound
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9813.20 ▼1.364.16 ▲1.9340.14 ▼4.55
Dashboard /wp-admin2,238 ▲504.91 ▼0.94104.59 ▼9.7667.58 ▲23.08
Posts /wp-admin/edit.php2,205 ▲1122.01 ▼0.0340.62 ▲5.4236.82 ▲2.84
Add New Post /wp-admin/post-new.php1,717 ▲18421.74 ▼1.54640.82 ▼60.4253.37 ▼5.11
Media Library /wp-admin/upload.php1,435 ▲474.16 ▼0.07108.57 ▲10.3252.67 ▲9.24
CTAs /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-table.php1,0592.6163.1991.86
Editar Keyword /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-interlinking-page-edit.php1,0892.5348.2142.05
P/S & BJ /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-table-ps-by.php1,3242.7359.2644.27
Editar CTA /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-cta-page-edit.php1,1342.5844.7957.14
Sistemex Inbound /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-dashboard.php9942.3443.5455.28
Editar Banner /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-banners-page-edit.php1,2313.5461.3078.86
Keywords /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-interlinking-table.php1,1282.5952.5337.16
Banners /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-table-banners.php1,1422.7757.3740.54
Insercción de Banner /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-banners-page.php1,2453.6457.1487.62
Insercción de CTA /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-cta-page.php1,3022.5549.9738.77

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables were found after uninstall: 6 tables
    • sistemex_productos_servicios
    • sistemex_inbound_cta
    • sistemex_interlinking_configuracion
    • sistemex_buyer_journey
    • sistemex_inbound_banners
    • sistemex_interlinking
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-interlinking-page-edit.php
    • > Notice in wp-content/plugins/sistemex-inbound/includes/sistemex-inbound-interlinking-page-edit.php+9
    Undefined index: keyword
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-banners-page-edit.php
    • > Notice in wp-content/plugins/sistemex-inbound/includes/sistemex-functions.php+933
    Undefined offset: 0
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-banners-page-edit.php
    • > Notice in wp-content/plugins/sistemex-inbound/includes/sistemex-inbound-banners-page-edit.php+10
    Undefined index: cta
    • > GET request to /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-banners-page-edit.php
    • > Notice in wp-content/plugins/sistemex-inbound/includes/sistemex-functions.php+930
    Trying to get property 'buyer_journey' of non-object

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/sistemex-inbound/includes/header.php
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sistemex-inbound/includes/mfp-first-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sistemex-inbound/includes/sistemex-inbound-table-ps-by.php:6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/sistemex-inbound/includes/sistemex-inbound-interlinking-page-edit.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sistemex-inbound/sistemex-inbound-banners.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sistemex-inbound/includes/sistemex-inbound-dashboard.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sistemex-inbound/includes/sistemex-inbound-cta-page.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sistemex-inbound/includes/sistemex-interlinking-table.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sistemex-inbound/includes/sistemex-inbound-cta-page-edit.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sistemex-inbound/includes/sistemex-inbound-table.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sistemex-inbound/includes/sistemex-inbound-table-banners.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-cta-page.php
    • > Network (severe)
    wp-content/plugins/sistemex-inbound/includes/imagenes/iconSistemex.png%20%20width=20px - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-table-banners.php
    • > Network (severe)
    wp-content/plugins/sistemex-inbound/includes/images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-table-banners.php
    • > Network (severe)
    wp-content/plugins/sistemex-inbound/includes/images/sort_asc.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-cta-page-edit.php
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=sistemex-inbound%2Fincludes%2Fsistemex-inbound-cta-page-edit.php 329:76 Uncaught TypeError: Cannot read properties of null (reading 'urlImagen1')
    • > GET request to /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-banners-page.php
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $ is not a function" "TypeError: $ is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=sistemex-inbound%2Fincludes%2Fsistemex-inbound-banners-page.php:300:5)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=sistemex-inbound/includes/sistemex-inbound-banners-page.php
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $ is not a function

Optimizations

Plugin configuration 93% from 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
2 plugin tags: banners, inbound

sistemex-inbound/sistemex-inbound-banners.php 85% from 13 tests

"Sistemex – Inbound" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("sistemex-inbound.php" instead of "sistemex-inbound-banners.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 227 characters long)

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
Good job! No executable or dangerous file extensions detected31,567 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript84,0427,67714,324
CSS52,0105,27914,015
PHP141,3821193,228

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions46
▷ Named functions46100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/imagenes/sistemexlogo2.png1.87KB1.96KB0.00%
includes/imagenes/iconSistemex.png0.49KB0.58KB0.00%
includes/imagenes/banner_dummy.png1.22KB0.97KB▼ 20.73%