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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 36.32 ▲0.61 |
Dashboard /wp-admin | 3.06 ▲0.00 | 47.40 ▲8.46 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 48.74 ▲2.88 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 96.40 ▼584.98 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.78 ▲0.29 | 7.45 ▼1.16 | 56.04 ▲2.47 |
Dashboard /wp-admin | 2,967 ▲36 | 5.98 ▼0.05 | 144.94 ▼5.02 | 110.89 ▼13.55 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 62.29 ▼7.66 | 103.39 ▲8.61 |
Add New Post /wp-admin/post-new.php | 1,683 ▲102 | 18.80 ▲0.75 | 393.12 ▼28.65 | 121.10 ▼6.91 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.01 ▼0.01 | 153.52 ▼1.83 | 128.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
- > PHP Fatal error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 801 | 3,729 | 4,498 |
Markdown | 3 | 12 | 0 | 39 |
CSS | 1 | 0 | 0 | 10 |
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 code | 0.37 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 5 | 13.89% |
▷ Concrete classes | 31 | 86.11% |
▷ Final classes | 1 | 3.23% |
Methods | 425 | |
▷ Static methods | 27 | 6.35% |
▷ Public methods | 385 | 90.59% |
▷ Protected methods | 8 | 1.88% |
▷ Private methods | 32 | 7.53% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/lexity-icon.png | 2.17KB | 0.30KB | ▼ 86.06% |