10% shop-press

Code Review | ShopPress – All-in-One WooCommerce Addons for Elementor – Shop Builder, Product Builder, Wishlist, ...

WordPress plugin ShopPress – All-in-One WooCommerce Addons for Elementor – Shop Builder, Product Builder, Wishlist, ... scored 10% from 54 tests.

About plugin

  • Plugin page: shop-press
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 5, 2022
  • Latest release: Feb 13, 2023
  • Number of updates: 17
  • Update frequency: every 10.2 days
  • Top authors: climaxthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 655 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
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.37ms] Passed 4 tests

A check of server-side resources used by ShopPress – All-in-One WooCommerce Addons for Elementor – Shop Builder, Product Builder, Wishlist, ...
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1336.21 ▼11.14
Dashboard /wp-admin3.45 ▲0.1443.85 ▼5.22
Posts /wp-admin/edit.php3.56 ▲0.2043.34 ▼3.18
Add New Post /wp-admin/post-new.php6.05 ▲0.1691.81 ▲2.77
Media Library /wp-admin/upload.php3.37 ▲0.1433.25 ▲2.07

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 1,176 new files
Database: no new tables, 9 new options
New WordPress options
shoppress_message_pro
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
shoppress_message
db_upgraded
widget_recent-posts
widget_recent-comments
sp_admin

Browser metrics Passed 4 tests

Checking browser requirements for ShopPress – All-in-One WooCommerce Addons for Elementor – Shop Builder, Product Builder, Wishlist, ...
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲11214.47 ▼0.181.63 ▼0.7332.26 ▼13.02
Dashboard /wp-admin2,292 ▲1075.88 ▲1.0198.00 ▼19.5183.70 ▲36.31
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0336.92 ▼0.0535.03 ▼1.05
Add New Post /wp-admin/post-new.php1,530 ▼618.69 ▼4.56616.81 ▼77.8654.01 ▼4.27
Media Library /wp-admin/upload.php1,392 ▲74.20 ▲0.0095.62 ▼17.1041.36 ▼2.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • shoppress_message_pro
    • sp_admin
    • widget_theysaidso_widget
    • shoppress_message

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/shop-press/includes/one-click-demo-import/one-click-demo-import.php
    • > /wp-content/plugins/shop-press/Modules/CurrencyStorage.php
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'OCDI\\PluginInstaller' not found in wp-content/plugins/shop-press/includes/one-click-demo-import/views/import.php:10
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shop-press/includes/one-click-demo-import/inc/PluginInstallerSkin.php on line 11
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/shop-press/includes/one-click-demo-import/inc/PluginInstallerSkin.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/shop-press/includes/one-click-demo-import/inc/WXRImporter.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'OCDI\\CreateDemoContent\\DemoContentCreator' not found in wp-content/plugins/shop-press/includes/one-click-demo-import/views/create-content.php:10
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/shop-press/includes/one-click-demo-import/inc/PluginInstallerSkinSilent.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/shop-press/includes/one-click-demo-import/inc/CustomizerOption.php:14
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/shop-press/includes/one-click-demo-import/inc/PluginInstallerSkinSilent.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'OCDI\\PluginInstaller' not found in wp-content/plugins/shop-press/includes/one-click-demo-import/views/install-plugins.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLoggerCLI' not found in wp-content/plugins/shop-press/includes/one-click-demo-import/inc/Logger.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in shop-press/assets to your readme.txt
You can look at the official readme.txt

shop-press/shop-press.php 77% from 13 tests

The primary PHP file in "ShopPress – All-in-One WooCommerce Addons for Elementor – Shop Builder, Product Builder, Wishlist, ..." version 1.1.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.2.0" instead of "5.2")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 225 characters long)
  • Domain Path: The domain path folder was not found ("/shop-press")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected71,502 lines of code in 856 files:
LanguageFilesBlank linesComment linesLines of code
PHP3336,74810,75428,152
SVG34122519,315
JavaScript1051,71067918,281
CSS46469482,966
Sass2829812,717
Markdown120026
JSON10025
HTML132020

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity12.35
▷ Minimum class complexity1.00
▷ Maximum class complexity145.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces17
Interfaces0
Traits0
Classes218
▷ Abstract classes73.21%
▷ Concrete classes21196.79%
▷ Final classes20.95%
Methods1,812
▷ Static methods1769.71%
▷ Public methods1,25068.98%
▷ Protected methods29516.28%
▷ Private methods26714.74%
Functions19
▷ Named functions421.05%
▷ Anonymous functions1578.95%
Constants21
▷ Global constants1885.71%
▷ Class constants314.29%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.32MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Admin/App/src/images/helpdesk.png8.14KB8.40KB0.00%
Admin/App/build/images/ticket.ad23a23a.png8.75KB9.03KB0.00%
includes/woocommerce-swatches/admin/assets/images/placeholder.png0.38KB0.43KB0.00%
includes/woocommerce-swatches/admin/assets/images/radio-style-2.png19.87KB4.15KB▼ 79.11%
includes/woocommerce-swatches/admin/assets/images/radio-style-1.png19.38KB3.82KB▼ 80.31%