Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.33MB] [CPU: ▲0.30ms] Passed 4 tests
This is a short check of server-side resources used by CT Commerce Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 44.51 ▼0.21 |
Dashboard /wp-admin | 3.63 ▲0.33 | 48.20 ▼3.13 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 49.29 ▲0.61 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 99.23 ▲4.51 |
Media Library /wp-admin/upload.php | 3.56 ▲0.32 | 39.70 ▲3.92 |
Server storage [IO: ▲2.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ctclOrders |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for CT Commerce Lite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲41 | 14.31 ▲0.08 | 2.07 ▲0.11 | 42.23 ▼2.08 |
Dashboard /wp-admin | 2,222 ▲45 | 5.63 ▲0.08 | 91.76 ▼2.41 | 39.31 ▼4.18 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 1.97 ▲0.01 | 35.27 ▼3.26 | 32.42 ▼0.51 |
Add New Post /wp-admin/post-new.php | 6,397 ▲4,871 | 28.02 ▲4.97 | 798.09 ▲122.51 | 35.13 ▼15.37 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.19 ▼0.07 | 97.11 ▼7.21 | 40.31 ▼5.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'ctcLite' does not have a method 'ctcLiteUninstall'
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_ctclOrders
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ctc-lite/ctc-lite.php:47
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Product Page), #2 (Checkout page), #3 (Billing Tab), #4 (Shipping Tab), #5 (Email Tab), #6 (Peding Order Tab), #7 (Order detail modal), #8 (Add product gutenberg blocks), #9 (Checkout page gutenberg blocks), #10 (Processing page gutenberg block), #11 (Image gallery in overlay)
ctc-lite/ctc-lite.php Passed 13 tests
"CT Commerce Lite" version 2.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
33 characters long description:
CT Commerce Lite ecommerce plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,792 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 456 | 342 | 1,903 |
PHP | 5 | 256 | 368 | 1,104 |
CSS | 3 | 120 | 10 | 719 |
Markdown | 1 | 15 | 0 | 38 |
JSON | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 62 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 51 | 82.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 17.74% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 2.34MB with 1.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-8.png | 138.04KB | 50.06KB | ▼ 63.74% |
screenshot-1.png | 770.08KB | 229.72KB | ▼ 70.17% |
screenshot-9.png | 123.54KB | 45.59KB | ▼ 63.10% |
screenshot-5.png | 181.65KB | 49.04KB | ▼ 73.00% |
screenshot-2.png | 98.49KB | 37.50KB | ▼ 61.92% |