10% easify-server-woocommerce

Code Review | Easify Server WooCommerce

WordPress plugin Easify Server WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: easify-server-woo...
  • Plugin version: 4.35
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: Jun 15, 2023
  • Number of updates: 76
  • Update frequency: every 29.7 days
  • Top authors: Easify (100%)Otto42 (2.63%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /2,739 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/easify-server-woocommerce/includes/class-easify-generic-basic-auth.php+151
    Undefined offset: 1

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.61ms] Passed 4 tests

An overview of server-side resources used by Easify Server WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.97 ▼1.76
Dashboard /wp-admin3.38 ▲0.0846.55 ▼2.76
Posts /wp-admin/edit.php3.49 ▲0.1445.03 ▼2.90
Add New Post /wp-admin/post-new.php5.98 ▲0.0980.08 ▼14.03
Media Library /wp-admin/upload.php3.30 ▲0.0734.32 ▼2.75
Easify Settings /wp-admin/options-general.php?page=easify_options_page3.2831.75

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

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • Illegal file modification found: 2 files (0.75KB) outside of "wp-content/plugins/easify-server-woocommerce/" and "wp-content/uploads/"
    • (modified) .htaccess
    • (new file) esfysrvwc.cfg
Filesystem: 36 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
easify_options_orders
theysaidso_admin_options
easify_options_payment
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Easify Server WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7914.47 ▲0.091.73 ▼0.0843.35 ▼1.64
Dashboard /wp-admin2,220 ▲355.91 ▲0.0698.55 ▼4.5239.82 ▼4.63
Posts /wp-admin/edit.php2,103 ▲172.04 ▲0.0336.24 ▼1.3131.03 ▼1.74
Add New Post /wp-admin/post-new.php1,681 ▲16722.56 ▲5.06645.16 ▼64.2849.65 ▼11.27
Media Library /wp-admin/upload.php1,402 ▲144.30 ▲0.1694.68 ▼4.2340.35 ▼6.44
Easify Settings /wp-admin/options-general.php?page=easify_options_page1,7381.7524.2526.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/easify-server-woocommerce/includes/class-easify-generic-basic-auth.php+151
    Undefined offset: 1
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/easify-server-woocommerce/includes/class-easify-wc-plugin.php on line 29
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/easify-server-woocommerce/includes/easify_functions.php on line 19
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easify-server-woocommerce/includes/class-easify-wc-plugin.php on line 21
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/easify-server-woocommerce/includes/class-easify-wc-plugin.php on line 29
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easify-server-woocommerce/includes/easify_functions.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easify-server-woocommerce/includes/class-easify-wc-plugin-settings-page.php:18
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/easify-server-woocommerce/includes/easify_functions.php on line 19
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easify-server-woocommerce/includes/easify_functions.php on line 19
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/easify-server-woocommerce/includes/easify_functions.php on line 19
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/easify-server-woocommerce/includes/easify_functions.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt is a good inspiration

easify-server-woocommerce/easify.php 85% from 13 tests

The entry point to "Easify Server WooCommerce" version 4.35 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 229 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easify-server-woocommerce.php" instead of "easify.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
Good job! No executable or dangerous file extensions detected4,390 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,0992,0784,062
CSS45010325
JavaScript2003

PHP code Passed 2 tests

Analyzing 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.22
Average class complexity14.58
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes27.69%
▷ Concrete classes2492.31%
▷ Final classes00.00%
Methods205
▷ Static methods20.98%
▷ Public methods14068.29%
▷ Protected methods00.00%
▷ Private methods6531.71%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants947.37%
▷ Class constants1052.63%
▷ Public constants10100.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
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/help.png0.30KB0.32KB0.00%
assets/images/success.png0.72KB0.70KB▼ 2.86%
assets/images/warning.png0.76KB0.81KB0.00%
assets/images/easify_logo.png4.83KB2.30KB▼ 52.42%
assets/images/failure.png0.83KB0.94KB0.00%