79% omnishop

Code Review | Omnishop - Mobile shop apps complementing your WooCommerce webshop

WordPress plugin Omnishop - Mobile shop apps complementing your WooCommerce webshop scored79%from 54 tests.

About plugin

  • Plugin page: omnishop
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2
  • WordPress version: 6.3.1
  • First release: Dec 9, 2022
  • Latest release: Aug 6, 2023
  • Number of updates: 27
  • Update frequency: every 8.9 days
  • Top authors: omnishop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,158 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.77ms] Passed 4 tests

Server-side resources used by Omnishop - Mobile shop apps complementing your WooCommerce webshop
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.04 ▼5.39
Dashboard /wp-admin3.31 ▲0.0046.64 ▼3.23
Posts /wp-admin/edit.php3.36 ▲0.0056.04 ▲5.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.33 ▼27.31
Media Library /wp-admin/upload.php3.23 ▲0.0035.59 ▼3.16

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Omnishop - Mobile shop apps complementing your WooCommerce webshop
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.111.93 ▲0.2343.17 ▲0.44
Dashboard /wp-admin2,198 ▲175.61 ▼0.1289.10 ▼16.2540.27 ▼1.25
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0140.05 ▲0.7635.23 ▲1.40
Add New Post /wp-admin/post-new.php1,545 ▲1423.37 ▼0.31686.92 ▼8.0261.24 ▲6.71
Media Library /wp-admin/upload.php1,400 ▼34.26 ▼0.0596.64 ▼7.7941.54 ▼6.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/omnishop/public/partials/omnishop-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/omnishop/admin/partials/omnishop-admin-display.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
6 plugin tags: ecommerce, app, mobile, mcommerce, e-commerce...

omnishop/omnishop.php Passed 13 tests

The entry point to "Omnishop - Mobile shop apps complementing your WooCommerce webshop" version 1.0.8 is a PHP file that has certain tags in its header comment area
53 characters long description:
Plugin required for your Omnishop mobile applications

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
Good job! No executable or dangerous file extensions detected1,937 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP145228211,726
CSS2248117
JavaScript2203982
SVG10012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity21.78
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods87
▷ Static methods910.34%
▷ Public methods7080.46%
▷ Protected methods33.45%
▷ Private methods1416.09%
Functions16
▷ Named functions318.75%
▷ Anonymous functions1381.25%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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
10 compressed PNG files occupy 0.83MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/sections/newest.png103.49KB112.10KB0.00%
admin/images/sections/sliderFeatured.png68.28KB72.63KB0.00%
admin/images/sections/categoriesImageVertical.png106.97KB114.12KB0.00%
admin/images/sections/banner.png63.24KB68.06KB0.00%
admin/images/sections/bannerSquare.png176.85KB195.11KB0.00%