Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▼0.67ms] Passed 4 tests
An overview of server-side resources used by Daisycon WooCommerce Pixel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 45.15 ▲1.79 |
Dashboard /wp-admin | 3.57 ▲0.27 | 46.48 ▼3.08 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 46.39 ▲0.85 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 97.32 ▲11.42 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.67 ▼2.25 |
Daisycon WooCommerce pixel /wp-admin/options-general.php?page=daisycon-woocommerce | 3.40 | 33.12 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Daisycon WooCommerce Pixel
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.28 ▼0.87 | 1.45 ▼0.40 | 42.20 ▼5.68 |
Dashboard /wp-admin | 2,238 ▲50 | 5.86 ▲0.98 | 107.38 ▼10.28 | 46.31 ▼1.53 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.15 ▲0.16 | 41.93 ▲5.08 | 40.69 ▲6.11 |
Add New Post /wp-admin/post-new.php | 1,553 ▲20 | 23.33 ▲0.03 | 562.39 ▼117.97 | 49.61 ▼3.91 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.26 ▲0.04 | 95.18 ▼16.38 | 44.51 ▼0.57 |
Daisycon WooCommerce pixel /wp-admin/options-general.php?page=daisycon-woocommerce | 1,125 | 2.21 | 27.10 | 32.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Daisycon_Woocommerce_Admin' not found in wp-content/plugins/daisycon-woocommerce-pixel/admin/class-daisycon-woocommerce-settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/daisycon-woocommerce-pixel/public/partials/daisycon-woocommerce-public-display.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/daisycon-woocommerce-pixel/admin/partials/daisycon-woocommerce-admin-display.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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: conversion pixel, woocommerce, pixel, daisycon woocommerce pixel, daisycon
daisycon-woocommerce-pixel/daisycon-woocommerce.php 85% from 13 tests
"Daisycon WooCommerce Pixel" version 1.6.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("daisycon-woocommerce-pixel.php" instead of "daisycon-woocommerce.php")
- 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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,262 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 223 | 858 | 932 |
PO File | 2 | 48 | 54 | 144 |
SVG | 1 | 0 | 1 | 105 |
CSS | 1 | 7 | 0 | 45 |
JavaScript | 1 | 13 | 3 | 36 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 2 | 3.45% |
▷ Public methods | 36 | 62.07% |
▷ Protected methods | 16 | 27.59% |
▷ Private methods | 6 | 10.34% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 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
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/logo_small.png | 3.71KB | 2.33KB | ▼ 37.23% |
assets/screenshot-1.png | 39.72KB | 43.60KB | 0.00% |