Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.76ms] Passed 4 tests
An overview of server-side resources used by Chroma Google Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.40 ▲2.43 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.55 ▲1.27 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.84 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.14 ▼8.27 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.47 ▲1.92 |
Chroma Google Analytics /wp-admin/options-general.php?page=chroma_googleanalytics_settings | 3.24 | 34.40 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
chroma_googleanalytics |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Chroma Google Analytics
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.17 ▼1.14 | 1.67 ▼0.25 | 45.35 ▼6.36 |
Dashboard /wp-admin | 2,210 ▲19 | 5.88 ▲0.78 | 97.95 ▼4.03 | 36.77 ▼8.41 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.00 | 36.15 ▲0.32 | 33.98 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.00 ▲4.65 | 668.06 ▲37.37 | 60.12 ▲3.91 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.17 ▼0.04 | 91.48 ▼5.93 | 40.37 ▼1.88 |
Chroma Google Analytics /wp-admin/options-general.php?page=chroma_googleanalytics_settings | 882 | 2.19 | 23.51 | 34.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: statistics, google, analytics, tracking
chroma-google-analytics/chroma_googleanalytics.php 85% from 13 tests
The primary PHP file in "Chroma Google Analytics" version 1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("chroma-google-analytics.php" instead of "chroma_googleanalytics.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin526 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 151 | 180 | 362 |
Sass | 2 | 11 | 1 | 82 |
CSS | 1 | 1 | 0 | 48 |
JavaScript | 4 | 8 | 4 | 34 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 34 | 87.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.82% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin