10% metaxy-shop-connector

Code Review | Metaxy Shop Connector

WordPress plugin Metaxy Shop Connector scored 10% from 54 tests.

About plugin

  • Plugin page: metaxy-shop-conne...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Jan 12, 2022
  • Latest release: Apr 4, 2023
  • Number of updates: 21
  • Update frequency: every 21.6 days
  • Top authors: metaxysrl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 352 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Error in wp-content/plugins/metaxy-shop-connector/MetaxyShopConnector.php+39
    Uncaught Error: Call to undefined function wp_get_active_network_plugins() in wp-content/plugins/metaxy-shop-connector/MetaxyShopConnector.php:39
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.85ms] Passed 4 tests

Server-side resources used by Metaxy Shop Connector
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.14 ▼4.20
Dashboard /wp-admin3.31 ▲0.0043.59 ▼8.45
Posts /wp-admin/edit.php3.36 ▲0.0047.81 ▲2.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.33 ▼14.57
Media Library /wp-admin/upload.php3.23 ▲0.0033.25 ▼0.17

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

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

Browser metrics Passed 4 tests

Metaxy Shop Connector: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.27 ▼1.064.08 ▲2.3138.04 ▼6.43
Dashboard /wp-admin2,206 ▲215.86 ▲0.02106.48 ▲0.3537.81 ▼9.81
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0340.61 ▼0.4934.70 ▼0.29
Add New Post /wp-admin/post-new.php1,535 ▲723.37 ▲5.21657.00 ▲13.5559.17 ▼5.01
Media Library /wp-admin/upload.php1,388 ▼04.29 ▲0.0698.14 ▼4.4441.72 ▼1.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/metaxy-shop-connector/MetaxyShopConnector.php on line 13
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/metaxy-shop-connector/MetaxyShopConnector.php on line 13
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/metaxy-shop-connector/MetaxyShopConnector.php on line 13

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: vendite, amazon, ecommerce, ebay, filters...

metaxy-shop-connector/MetaxyShopConnector.php 92% from 13 tests

This is the main PHP file of "Metaxy Shop Connector" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("metaxy-shop-connector.php" instead of "MetaxyShopConnector.php")

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
There were no executable files found in this plugin125 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13225125

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions10
▷ Named functions660.00%
▷ Anonymous functions440.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin