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.21MB] [CPU: ▼18.68ms] Passed 4 tests
Server-side resources used by DMA WOO Modal Cart Lite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▼0.49 | 12.93 ▼25.06 |
Dashboard /wp-admin | 3.85 ▲0.55 | 29.27 ▼17.46 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 30.31 ▼14.70 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 70.41 ▼17.50 |
Media Library /wp-admin/upload.php | 3.85 ▲0.62 | 30.82 ▼5.59 |
DMA WOO Modal Cart Lite /wp-admin/admin.php?page=dma-woo-modal-cart-lite | 3.83 | 28.88 |
Server storage [IO: ▲3.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
recovery_mode_email_last_sent |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DMA WOO Modal Cart Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲171 | 13.61 ▼0.76 | 4.27 ▲2.29 | 48.26 ▲4.41 |
Dashboard /wp-admin | 2,228 ▲43 | 5.78 ▲0.89 | 93.95 ▼20.24 | 40.60 ▼4.42 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.07 ▲0.05 | 34.33 ▼0.69 | 35.53 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,536 ▼9 | 23.22 ▲5.08 | 637.60 ▲41.83 | 50.43 ▲1.03 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.30 ▼0.11 | 94.66 ▼6.83 | 39.82 ▼4.73 |
DMA WOO Modal Cart Lite /wp-admin/admin.php?page=dma-woo-modal-cart-lite | 721 | 1.53 | 6.57 | 20.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=dma-woo-modal-cart-lite
- > Warning in wp-content/plugins/dma-woo-modal-cart-lite/inc/DWMCL_Frontend.php+477
Use of undefined constant WC_VERSION - assumed 'WC_VERSION' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=dma-woo-modal-cart-lite
- > Warning in wp-content/plugins/dma-woo-modal-cart-lite/inc/DWMCL_Utils.php+63
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
- > GET request to /wp-admin/admin.php?page=dma-woo-modal-cart-lite
- > Error in wp-content/plugins/dma-woo-modal-cart-lite/inc/DWMCL_Admin.php+232
Uncaught Error: Call to undefined function DMAWMCA\wc_get_products() in wp-content/plugins/dma-woo-modal-cart-lite/inc/DWMCL_Admin.php:232
Stack trace:
#0 wp-includes/class-wp-hook.php(310): DMAWMCA\DWMCL_Admin->dma_options_page()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/dma-woo-modal-cart-lite/DWMCL.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
dma-woo-modal-cart-lite/DWMCL.php 77% from 13 tests
The principal PHP file in "DMA WOO Modal Cart Lite" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dma-woo-modal-cart-lite.php" instead of "DWMCL.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "4.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin24,875 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 21,031 |
PHP | 12 | 35,650 | 57,368 | 2,437 |
CSS | 6 | 199 | 29 | 1,027 |
JavaScript | 4 | 127 | 32 | 354 |
SVG | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 28.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 14 | 19.18% |
▷ Public methods | 72 | 98.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.37% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 8 | |
▷ Global constants | 3 | 37.50% |
▷ Class constants | 5 | 62.50% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.29MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-256x256.png | 19.07KB | 7.28KB | ▼ 61.83% |
assets/fonts/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/images/ui-icons_ef8c08_256x240.png | 7.97KB | 4.21KB | ▼ 47.22% |
assets/fonts/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/images/icon-128x128.png | 10.10KB | 3.98KB | ▼ 60.60% |