78% easy-wp-ecommerce-to-farpost

Code Review | Easy Upload to Farpost

WordPress plugin Easy Upload to Farpost scored78%from 54 tests.

About plugin

  • Plugin page: easy-wp-ecommerce...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0.1
  • WordPress version: 6.3.1
  • First release: May 30, 2020
  • Latest release: Jul 25, 2022
  • Number of updates: 15
  • Update frequency: every 52.6 days
  • Top authors: consultapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /531 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.39ms] Passed 4 tests

This is a short check of server-side resources used by Easy Upload to Farpost
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1367.40 ▲22.78
Dashboard /wp-admin3.34 ▲0.0447.61 ▼7.12
Posts /wp-admin/edit.php3.39 ▲0.0449.93 ▼2.30
Add New Post /wp-admin/post-new.php5.92 ▲0.0491.62 ▼16.00
Media Library /wp-admin/upload.php3.27 ▲0.0437.55 ▼0.12
Easy Farpost Upload /wp-admin/options-general.php?page=ca_wpecomm_farpost3.2135.03

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Just a few items left to fix
  • The plugin illegally modified 1 file (0.05KB) outside of "wp-content/plugins/easy-wp-ecommerce-to-farpost/" and "wp-content/uploads/"
    • (new file) farpost.xml
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
ca_wpecomm_farpost_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Easy Upload to Farpost: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.23 ▼1.151.90 ▲0.1140.15 ▼1.54
Dashboard /wp-admin2,210 ▲224.86 ▼0.06109.08 ▲5.8441.42 ▼3.61
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0239.40 ▼1.3135.46 ▲0.86
Add New Post /wp-admin/post-new.php1,539 ▲2023.31 ▲0.20680.67 ▼14.3459.26 ▲7.79
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.00101.80 ▼3.0443.28 ▼3.50
Easy Farpost Upload /wp-admin/options-general.php?page=ca_wpecomm_farpost8602.0423.1329.49

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • ca_wpecomm_farpost_options

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
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=ca_wpecomm_farpost
    • > Warning in wp-admin/includes/template.php+1771
    call_user_func() expects parameter 1 to be a valid callback, function 'ca_wpecomm_farpost_basic' not found or invalid function name
    • > GET request to /wp-admin/options-general.php?page=ca_wpecomm_farpost
    • > Notice in wp-content/plugins/easy-wp-ecommerce-to-farpost/ca-wpecomm-farpost.php+54
    Undefined index: make_xml

SRP 50% 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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-wp-ecommerce-to-farpost/ca-wpecomm-farpost.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_time() in wp-content/plugins/easy-wp-ecommerce-to-farpost/ca-wpfp-template.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_time() in wp-content/plugins/easy-wp-ecommerce-to-farpost/ca-woo-template.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: wp ecommerce, woocommerce, woo, farpost, wpecommerce

easy-wp-ecommerce-to-farpost/ca-wpecomm-farpost.php 92% from 13 tests

Analyzing the main PHP file in "Easy Upload to Farpost" version 1.2
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-wp-ecommerce-to-farpost.php" instead of "ca-wpecomm-farpost.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin276 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34429276

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.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