Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼148.10ms] Passed 4 tests
An overview of server-side resources used by LeadElephant for Wordpress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 36.51 ▲5.66 |
Dashboard /wp-admin | 3.08 ▲0.01 | 35.75 ▼4.38 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 36.42 ▼0.96 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.00 | 73.18 ▼587.38 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 24.27 ▲0.34 |
LeadElephant /wp-admin/options-general.php?page=leadelephant-tracking-code | 2.97 | 22.88 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by LeadElephant for Wordpress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,671 ▲45 | 15.89 ▲0.26 | 4.98 ▼0.47 | 75.17 ▼2.19 |
Dashboard /wp-admin | 2,938 ▲45 | 6.00 ▼0.13 | 114.35 ▼18.05 | 166.20 ▼8.96 |
Posts /wp-admin/edit.php | 2,711 ▼26 | 3.24 ▲0.01 | 64.46 ▼2.07 | 137.84 ▼2.24 |
Add New Post /wp-admin/post-new.php | 3,709 ▼98 | 18.95 ▲0.17 | 415.22 ▼34.79 | 165.35 ▼9.56 |
Media Library /wp-admin/upload.php | 1,757 ▲5 | 5.51 ▼0.04 | 139.13 ▼4.90 | 185.28 ▲2.58 |
LeadElephant /wp-admin/options-general.php?page=leadelephant-tracking-code | 1,109 | 2.54 | 58.01 | 125.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
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
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=leadelephant-tracking-code
- > Notice in wp-content/plugins/leadelephant/leadelephant.php+35
Undefined variable: message
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=leadelephant-tracking-code
- > Notice in wp-content/plugins/leadelephant/leadelephant.php+71
Trying to access array offset on value of type bool
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=leadelephant-tracking-code
- > Notice in wp-content/plugins/leadelephant/leadelephant.php+71
Trying to access array offset on value of type null
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× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/leadelephant/leadelephant.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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: leadelephant, code, leads, tracking, companies
leadelephant/leadelephant.php Passed 13 tests
"LeadElephant for Wordpress" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Plugin for integrating LeadElephant into your website.
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
Good job! No executable or dangerous file extensions detected65 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 8 | 65 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There are no PNG files in this plugin