10% lexity-live-for-wp-e-commerce

Code Review | Lexity Live for WP e-Commerce

WordPress plugin Lexity Live for WP e-Commerce scored 10% from 54 tests.

About plugin

  • Plugin page: lexity-live-for-w...
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5.1
  • WordPress version: 5.8.1
  • First release: Feb 19, 2013
  • Latest release: Mar 14, 2013
  • Number of updates: 22
  • Update frequency: every 2.0 days
  • Top authors: NewClarity (95.45%)Lexity (9.09%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,684 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/lexity-live-for-wp-e-commerce/classes/class-plugin-base.php+6
    Uncaught Error: Class 'Sidecar_Plugin_Base' not found in wp-content/plugins/lexity-live-for-wp-e-commerce/classes/class-plugin-base.php:6
    Stack trace:
    #0 wp-content/plugins/lexity-live-for-wp-e-commerce/loader.php(11): require()
    #1 wp-content/plugins/lexity-live-for-wp-e-commerce/libraries/imperative/imperative.php(481): require_once('/var/www/wordpr...')
    #2 wp-content/plugins/lexity-live-for-wp-e-commerce/libraries/imperative/imperative.php(269): WP_Library_Manager->_load_plugin_loaders()
    #3 wp-includes/class-wp-hook.php(305): WP_Library_Manager->activate_plugin()
    #4 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #5 wp-includes/plugin.php(470): WP_Hook->do_action()
    #6 wp-admin/includes/plugin.php(683): do_action()

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

Analyzing server-side resources used by Lexity Live for WP e-Commerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0036.32 ▲0.61
Dashboard /wp-admin3.06 ▲0.0047.40 ▲8.46
Posts /wp-admin/edit.php3.11 ▲0.0048.74 ▲2.88
Add New Post /wp-admin/post-new.php5.42 ▼0.0296.40 ▼584.98
Media Library /wp-admin/upload.php3.00 ▲0.0036.74 ▲0.28

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lexity Live for WP e-Commerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.78 ▲0.297.45 ▼1.1656.04 ▲2.47
Dashboard /wp-admin2,967 ▲365.98 ▼0.05144.94 ▼5.02110.89 ▼13.55
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0162.29 ▼7.66103.39 ▲8.61
Add New Post /wp-admin/post-new.php1,683 ▲10218.80 ▲0.75393.12 ▼28.65121.10 ▼6.91
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.01153.52 ▼1.83128.63 ▲4.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RESTian_Parser_Base' not found in wp-content/plugins/lexity-live-for-wp-e-commerce/libraries/restian/parsers/application-xml-parser.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lexity-live-for-wp-e-commerce/libraries/sidecar/sidecar.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'RESTian_Parser_Base' not found in wp-content/plugins/lexity-live-for-wp-e-commerce/libraries/restian/parsers/application-serialized-php.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Lexity_Plugin_Base' not found in wp-content/plugins/lexity-live-for-wp-e-commerce/apps/class-live-plugin.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RESTian_Parser_Base' not found in wp-content/plugins/lexity-live-for-wp-e-commerce/libraries/restian/parsers/text-html-parser.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Sidecar_Plugin_Base' not found in wp-content/plugins/lexity-live-for-wp-e-commerce/classes/class-plugin-base.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RESTian_Auth_Provider_Base' not found in wp-content/plugins/lexity-live-for-wp-e-commerce/libraries/restian/auth-providers/not-applicable-auth-provider.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RESTian_Http_Agent_Base' not found in wp-content/plugins/lexity-live-for-wp-e-commerce/libraries/restian/http-agents/php-curl-http-agent.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RESTian_Client' not found in wp-content/plugins/lexity-live-for-wp-e-commerce/classes/class-api-client.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RESTian_Parser_Base' not found in wp-content/plugins/lexity-live-for-wp-e-commerce/libraries/restian/parsers/text-csv-parser.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

lexity-live-for-wp-e-commerce/lexity-live-for-wp-e-commerce.php 85% from 13 tests

Analyzing the main PHP file in "Lexity Live for WP e-Commerce" version 1.0.9
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 435 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected4,547 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP408013,7294,498
Markdown312039
CSS10010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.00
▷ Minimum class complexity1.00
▷ Maximum class complexity156.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes36
▷ Abstract classes513.89%
▷ Concrete classes3186.11%
▷ Final classes13.23%
Methods425
▷ Static methods276.35%
▷ Public methods38590.59%
▷ Protected methods81.88%
▷ Private methods327.53%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/lexity-icon.png2.17KB0.30KB▼ 86.06%