10% shoparize

Code Review | Shoparize Partner Plugin for WooCommerce

WordPress plugin Shoparize Partner Plugin for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: shoparize
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 6, 2022
  • Latest release: Sep 13, 2022
  • Number of updates: 7
  • Update frequency: every 5.6 days
  • Top authors: shoparize (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,017 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/shoparize/shoparize.php+16
    Uncaught Error: Call to undefined function wp_get_active_network_plugins() in wp-content/plugins/shoparize/shoparize.php:16
    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.01MB] [CPU: ▼9.38ms] Passed 4 tests

A check of server-side resources used by Shoparize Partner Plugin for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.54 ▼7.29
Dashboard /wp-admin3.31 ▼0.0445.54 ▼15.24
Posts /wp-admin/edit.php3.36 ▲0.0044.10 ▼0.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.61 ▼12.13
Media Library /wp-admin/upload.php3.23 ▲0.0033.81 ▼2.87

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shoparize Partner Plugin for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.38 ▼1.001.79 ▲0.1240.29 ▼0.51
Dashboard /wp-admin2,206 ▲154.88 ▼0.0196.34 ▼6.4537.88 ▼0.25
Posts /wp-admin/edit.php2,089 ▼31.99 ▲0.0036.54 ▼2.1835.35 ▲2.09
Add New Post /wp-admin/post-new.php1,533 ▲923.31 ▲0.13671.81 ▲62.5555.41 ▲0.53
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.0594.51 ▼0.6040.11 ▼1.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shoparize/shoparize-admin.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/shoparize/shoparize.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: shoparize, affiliate window, affiliate, kiesproduct, advertiser...

shoparize/shoparize.php Passed 13 tests

Analyzing the main PHP file in "Shoparize Partner Plugin for WooCommerce" version 1.0.3
17 characters long description:
Shoparize partner

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin126 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22411126

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.32MB with 0.25MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screnshot-001.png309.78KB52.52KB▼ 83.05%
assets/icon-128x128.png16.22KB4.15KB▼ 74.41%