Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.30ms] Passed 4 tests
An overview of server-side resources used by ELEX WooCommerce Catalog Mode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.66 ▲3.35 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.96 ▼2.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.92 ▼3.55 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.51 ▼6.80 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.02 ▲0.07 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
ELEX WooCommerce Catalog Mode: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.24 ▼0.39 | 1.70 ▲0.16 | 43.50 ▲1.74 |
Dashboard /wp-admin | 2,198 ▲18 | 5.61 ▼0.00 | 91.36 ▲8.33 | 38.68 ▼6.74 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.02 | 35.36 ▼6.10 | 31.89 ▼6.56 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.26 ▲0.11 | 661.21 ▲0.14 | 56.27 ▼2.83 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.14 ▲0.00 | 94.50 ▼3.29 | 41.34 ▼1.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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/elex-woocommerce-catalog-mode/review_and_troubleshoot_notify/resources/logo.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-woocommerce-catalog-mode/review_and_troubleshoot_notify/resources/troubleshoot.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-woocommerce-catalog-mode/review_and_troubleshoot_notify/resources/review.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/elex-woocommerce-catalog-mode/includes/market.php:91
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: woocommerce, hide price, woocommerce catalog only, woocommerce catalog mode, catalog mode
elex-woocommerce-catalog-mode/elex-catalog-mode.php 77% from 13 tests
The entry point to "ELEX WooCommerce Catalog Mode" version 1.4.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- 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
- Requires at least: The required version number did not match the one declared in readme.txt ("3.0.1" instead of "2.6.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("elex-woocommerce-catalog-mode.php" instead of "elex-catalog-mode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin8,335 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 6 | 0 | 6,712 |
PHP | 11 | 153 | 85 | 1,548 |
JavaScript | 1 | 15 | 2 | 75 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 33.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 3 | 5.45% |
▷ Public methods | 55 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.40MB with 0.30MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/Advanced Bulk Edit.png | 69.40KB | 15.94KB | ▼ 77.03% |
resources/Dynamic Pricing & Discounts.png | 90.78KB | 22.92KB | ▼ 74.75% |
resources/wsdesk.png | 161.93KB | 43.90KB | ▼ 72.89% |
resources/prod-logo.png | 85.64KB | 21.17KB | ▼ 75.28% |