10% woomoby

Code Review | WooMoby

WordPress plugin WooMoby scored10%from 54 tests.

About plugin

  • Plugin page: woomoby
  • Plugin version: 1.3.14
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Oct 23, 2017
  • Latest release: Mar 12, 2018
  • Number of updates: 85
  • Update frequency: every 1.7 days
  • Top authors: codingpixel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,654 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method CP_wooMoby_Core::woomoby_create_pages() should not be called statically

Server metrics [RAM: ▲0.56MB] [CPU: ▲0.25ms] Passed 4 tests

Analyzing server-side resources used by WooMoby
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.5246.25 ▲4.56
Dashboard /wp-admin3.92 ▲0.6256.98 ▲5.94
Posts /wp-admin/edit.php3.99 ▲0.6358.32 ▲10.58
Add New Post /wp-admin/post-new.php6.44 ▲0.5595.74 ▼13.94
Media Library /wp-admin/upload.php3.78 ▲0.5544.71 ▲4.44
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.9536.71

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

How much does this plugin use your filesystem and database?
Please fix the following
  • You have illegally modified 5 files (117.49KB) outside of "wp-content/plugins/woomoby/" and "wp-content/uploads/"
    • (new file) wp-content/themes/twentytwentyone/mobileapp-account.php
    • (new file) wp-content/themes/twentytwentyone/mobileapp-template.php
    • (new file) wp-content/themes/twentytwentyone/mobileapp-checkout.php
    • (new file) wp-content/themes/twentytwentyone/mobileapp-cart.php
    • (new file) wp-content/themes/twentytwentyone/mobileapp-wishlist.php
Filesystem: 119 new files
Database: no new tables, 7 new options
New WordPress options
cp_settings_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WooMoby
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10813.30 ▼1.071.90 ▲0.2140.48 ▲0.69
Dashboard /wp-admin2,248 ▲604.91 ▼0.11106.84 ▲1.5680.18 ▲36.03
Posts /wp-admin/edit.php2,157 ▲682.04 ▲0.0539.21 ▼1.0039.30 ▲2.52
Add New Post /wp-admin/post-new.php1,570 ▲5622.78 ▲5.20742.22 ▲37.5046.75 ▼13.68
Media Library /wp-admin/upload.php1,447 ▲594.26 ▲0.0798.68 ▼16.5969.53 ▲19.89
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins1,0542.0624.1630.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. Unsupported value type (object). Please see Debugging in WordPress for more information. (This message was added in version 4.8.2.)
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • cp_settings_options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/woomoby/views/tabs/notifications.php
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woomoby/views/tabs/sliders.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_page_by_path() in wp-content/plugins/woomoby/views/tabs/layout-woomoby.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woomoby/views/tabs/custom-code.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/woomoby/views/navbar.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woomoby/views/page-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woomoby/views/tabs/branding.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woomoby/views/tabs/general.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woomoby/views/options-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/woomoby/includes/class-tgm-plugin-activation.php:2076
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woomoby/views/tabs/license-woomoby.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: A description for screenshot #1 is required in woomoby/assets to your readme.txt
  • Stable tag: Not defined
Please take inspiration from this readme.txt

woomoby/woomoby.php 92% from 13 tests

The primary PHP file in "WooMoby" version 1.3.14 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 151 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin19,557 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
CSS68031156,933
PHP228381,8795,675
PO File171,4491,9934,842
SVG1001,155
JavaScript1354132952

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity39.80
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods126
▷ Static methods97.14%
▷ Public methods10381.75%
▷ Protected methods2318.25%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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
21 PNG files occupy 0.65MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/menu-opener.png0.97KB0.11KB▼ 88.68%
assets/images/list-view.png3.01KB1.60KB▼ 47.05%
assets/images/best.png5.66KB5.23KB▼ 7.71%
assets/images/cart.png4.58KB2.46KB▼ 46.21%
assets/images/shir3.png54.57KB19.04KB▼ 65.10%