Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.52MB] [CPU: ▼18.70ms] Passed 4 tests
An overview of server-side resources used by LC Tracking Codes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 46.33 ▲2.65 |
Dashboard /wp-admin | 3.46 ▲0.15 | 52.51 ▼2.14 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 55.17 ▼9.24 |
Add New Post /wp-admin/post-new.php | 3.34 ▼2.55 | 41.45 ▼59.91 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.90 ▼3.52 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
LC Tracking Codes: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲34 | 13.19 ▼0.07 | 2.24 ▲0.08 | 38.94 ▼7.05 |
Dashboard /wp-admin | 2,221 ▲15 | 4.82 ▼0.02 | 105.43 ▼0.43 | 40.14 ▼2.68 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.04 ▼0.00 | 35.29 ▼7.64 | 33.13 ▼4.43 |
Add New Post /wp-admin/post-new.php | 1,547 ▲22 | 23.32 ▲0.14 | 645.75 ▼46.37 | 62.30 ▲5.71 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.35 ▲0.19 | 96.92 ▼12.43 | 42.02 ▼2.79 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function LCMD\\__() in wp-content/plugins/lcmd-tracking-codes/lcmd-tracking-codes.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: google search console, google webmasters, tracking codes, google analytics, bing...
lcmd-tracking-codes/lcmd-tracking-codes.php 85% from 13 tests
"LC Tracking Codes" version 1.1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("lcmd-tracking-codes")
- Domain Path: Prefix the domain path with a forward slash character ("/lcmd-tracking-codes")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/lcmd-tracking-codes/deploy.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 3,724 |
PHP | 4 | 147 | 187 | 908 |
PO File | 2 | 102 | 140 | 362 |
Markdown | 3 | 18 | 0 | 92 |
CSS | 1 | 1 | 0 | 23 |
JavaScript | 1 | 1 | 0 | 14 |
DOS Batch | 1 | 0 | 0 | 7 |
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.39 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 4 | 9.09% |
▷ Public methods | 36 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 18.18% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ 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
No PNG files were detected