10% easy-custom-oceanwp-shop

Code Review | Easy Custom OceanWP Shop

WordPress plugin Easy Custom OceanWP Shop scored10%from 54 tests.

About plugin

  • Plugin page: easy-custom-ocean...
  • Plugin version: 1.9.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: May 7, 2021
  • Latest release: Aug 15, 2023
  • Number of updates: 53
  • Update frequency: every 15.7 days
  • Top authors: rock4temps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,178 total downloads

Benchmarks

Plugin footprint 58% 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 validation failed for this plugin
    • > Notice in wp-content/plugins/easy-custom-oceanwp-shop/easy-custom-oceanwp-shop.php+1652
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.23MB] [CPU: ▼9.19ms] Passed 4 tests

Analyzing server-side resources used by Easy Custom OceanWP Shop
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1241.29 ▼6.42
Dashboard /wp-admin3.58 ▲0.2347.34 ▼15.07
Posts /wp-admin/edit.php3.63 ▲0.2743.99 ▲2.20
Add New Post /wp-admin/post-new.php6.18 ▲0.2983.38 ▼16.28
Media Library /wp-admin/upload.php3.50 ▲0.2739.08 ▲1.02
OceanWP Theme Shop /wp-admin/admin.php?page=oceanwp_theme_shop3.4732.26
Woocommerce Standard Shop /wp-admin/admin.php?page=woocommerce_standard_shop3.4734.36
General Settings /wp-admin/admin.php?page=ecos_settings_page3.4736.54

Server storage [IO: ▲4.01MB] [DB: ▲0.02MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 10 new options
New WordPress options
ecos_active_plugin_version
ecos_multiple_setting_oceanwp_shop
ecos_multiple_setting
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
ecos_multiple_setting_woocommerce_shop
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Easy Custom OceanWP Shop
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8013.60 ▼0.611.05 ▼0.7248.11 ▲5.29
Dashboard /wp-admin2,243 ▲715.84 ▲0.1191.46 ▼14.7738.91 ▲4.62
Posts /wp-admin/edit.php2,153 ▲532.29 ▲0.1741.33 ▲1.8935.62 ▼2.36
Add New Post /wp-admin/post-new.php1,564 ▲2923.21 ▲5.01656.07 ▼1.3236.23 ▼29.05
Media Library /wp-admin/upload.php1,448 ▲484.41 ▲0.1599.31 ▲1.7844.73 ▲3.79
OceanWP Theme Shop /wp-admin/admin.php?page=oceanwp_theme_shop3,9023.4796.2883.18
Woocommerce Standard Shop /wp-admin/admin.php?page=woocommerce_standard_shop4,9153.77145.0255.37
General Settings /wp-admin/admin.php?page=ecos_settings_page3,8902.5950.8083.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 10 options
    • ecos_active_plugin_version
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • ecos_multiple_setting_woocommerce_shop
    • ecos_multiple_setting
    • ecos_multiple_setting_oceanwp_shop
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce shop, woocommerce hooks, customize woocommerce, customize oceanwp

easy-custom-oceanwp-shop/easy-custom-oceanwp-shop.php Passed 13 tests

The main PHP file in "Easy Custom OceanWP Shop" ver. 1.9.2 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
Add functionality and customize woocommerce shop with the OceanWP theme or others

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 plugin10,327 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP54,9463,4459,088
PO File1430804875
CSS2291414361
JavaScript1033

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions387
▷ Named functions38499.22%
▷ Anonymous functions30.78%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
22 PNG files occupy 0.75MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/oceanwp theme shop/table-detail-commande-page-commande-recu.PNG21.58KB11.27KB▼ 47.77%
img/woocommerce standard/breadcrumb.png3.14KB2.70KB▼ 13.98%
img/oceanwp theme shop/detail-commande-page-mon-compte.png21.60KB11.29KB▼ 47.73%
img/general settings/promotion-message.png4.71KB3.18KB▼ 32.53%
img/general settings/blocs-description.png13.62KB8.12KB▼ 40.38%