Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼141.47ms] Passed 4 tests
A check of server-side resources used by EDD Google Analytics Universal Ecommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 40.86 ▲19.29 |
Dashboard /wp-admin | 3.07 ▲0.02 | 48.36 ▲5.68 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 49.40 ▲2.69 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 92.91 ▼574.67 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 37.00 ▲0.43 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for EDD Google Analytics Universal Ecommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.27 ▲0.80 | 10.29 ▲0.59 | 50.94 ▲3.61 |
Dashboard /wp-admin | 2,973 ▲39 | 5.86 ▼0.08 | 160.98 ▲11.11 | 112.06 ▼6.65 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 71.27 ▼1.81 | 92.99 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.73 ▼0.00 | 379.68 ▼6.50 | 112.35 ▼0.67 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.06 ▲0.02 | 169.07 ▲7.39 | 119.24 ▼12.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-google-analytics-universal-ecommerce/edd_gauniversal_ecommerce.php:86
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== edd-google-analytics-universal-ecommerce ===
)
edd-google-analytics-universal-ecommerce/edd_gauniversal_ecommerce.php 85% from 13 tests
The main file in "EDD Google Analytics Universal Ecommerce" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("edd-google-analytics-universal-ecommerce.php" instead of "edd_gauniversal_ecommerce.php")
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 detected51 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 21 | 51 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected