10% woocommerce-ownedit

Code Review | Owned it - Conversation Rate Optimization - WooCommerce Extension

WordPress plugin Owned it - Conversation Rate Optimization - WooCommerce Extension scored10%from 54 tests.

About plugin

  • Plugin page: woocommerce-ownedit
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 21, 2014
  • Latest release: Jun 22, 2015
  • Number of updates: 55
  • Update frequency: every 9.4 days
  • Top authors: ownedit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,610 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/woocommerce-ownedit/Owned_it.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; OwneditWidget has a deprecated constructor

Server metrics [RAM: ▼1.72MB] [CPU: ▼48.32ms] Passed 4 tests

Analyzing server-side resources used by Owned it - Conversation Rate Optimization - WooCommerce Extension
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.29 ▼1.188.83 ▼29.10
Dashboard /wp-admin2.30 ▼1.0511.01 ▼47.48
Posts /wp-admin/edit.php2.30 ▼1.0610.19 ▼32.69
Add New Post /wp-admin/post-new.php2.30 ▼3.5911.04 ▼84.00
Media Library /wp-admin/upload.php2.30 ▼0.939.51 ▼23.29
Owned it /wp-admin/options-general.php?page=ownedit-plugin2.309.37

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Owned it - Conversation Rate Optimization - WooCommerce Extension
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,469 ▼29214.32 ▼0.090.97 ▼0.7017.53 ▼25.00
Dashboard /wp-admin2,199 ▲185.62 ▼0.04101.04 ▲2.3446.67 ▲7.45
Posts /wp-admin/edit.php2,104 ▲11.98 ▼0.0141.45 ▲7.6532.88 ▼0.44
Add New Post /wp-admin/post-new.php1,529 ▲123.47 ▲0.42604.05 ▼78.4959.61 ▼0.22
Media Library /wp-admin/upload.php1,404 ▲14.21 ▲0.11104.03 ▲5.3646.31 ▼1.32
Owned it /wp-admin/options-general.php?page=ownedit-plugin8002.0023.7126.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in OwneditWidget is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_owneditwidget
    • ownedit
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=ownedit-plugin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in OwneditWidget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=ownedit-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ownedit-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ownedit-plugin
    • > Notice in wp-content/plugins/woocommerce-ownedit/Owned_it_options.php+40
    Undefined index: storeid

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woocommerce-ownedit/Owned_it.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/woocommerce-ownedit/Owned_it_options.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Screenshots: Add images for these screenshots: #1 (Use Owned It to), #2 (Insights), #3 (How it works?)
You can take inspiration from this readme.txt

woocommerce-ownedit/Owned_it.php 85% from 13 tests

Analyzing the main PHP file in "Owned it - Conversation Rate Optimization - WooCommerce Extension" version 2.0
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 168 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-ownedit.php" instead of "Owned_it.php")

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
Everything looks great! No dangerous files found in this plugin208 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24538208

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin