Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.07ms] 75% from 4 tests
A check of server-side resources used by Leadoma Plugin
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 760.47ms on /wp-admin/admin.php?page=leadoma)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 33.35 ▼6.67 |
Dashboard /wp-admin | 3.37 ▲0.07 | 44.39 ▼3.43 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 48.22 ▼1.52 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 90.59 ▼4.67 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.15 ▲3.27 |
Leadoma /wp-admin/admin.php?page=leadoma | 3.33 | 760.47 |
Login /wp-admin/admin.php?page=leadoma-login | 3.30 | 32.66 |
Server storage [IO: ▲1.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Leadoma Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲112 | 13.48 ▼0.91 | 1.87 ▲0.11 | 43.14 ▼0.97 |
Dashboard /wp-admin | 2,238 ▲50 | 5.14 ▼0.76 | 111.63 ▼6.74 | 80.40 ▲31.93 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.32 ▲0.33 | 40.57 ▲5.03 | 37.63 ▲4.45 |
Add New Post /wp-admin/post-new.php | 1,710 ▲196 | 22.93 ▲5.30 | 753.04 ▲110.73 | 48.09 ▼8.75 |
Media Library /wp-admin/upload.php | 1,498 ▲113 | 4.55 ▲0.39 | 99.90 ▲2.42 | 67.71 ▲24.75 |
Leadoma /wp-admin/admin.php?page=leadoma | 838 | 2.42 | 30.61 | 26.01 |
Login /wp-admin/admin.php?page=leadoma-login | 2,713 | 2.04 | 28.81 | 36.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=leadoma
- > Notice in wp-content/plugins/leadoma/includes/pages/admin/dashboard.php+251
Undefined variable: monthlyCharts
- > GET request to /wp-admin/admin.php?page=leadoma
- > Notice in wp-content/plugins/leadoma/includes/pages/admin/dashboard.php+252
Undefined variable: dailyCharts
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/leadoma/includes/pages/customers/components/additional-info.php
- > /wp-content/plugins/leadoma/includes/pages/customers/components/notes.php
- > /wp-content/plugins/leadoma/includes/pages/tags/tags.php
- > /wp-content/plugins/leadoma/includes/pages/customers/components/tags.php
- > /wp-content/plugins/leadoma/includes/pages/auth/auth.php
- > /wp-content/plugins/leadoma/includes/pages/customers/components/basic-info.php
- 47× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant LEADOMA_DIR_URL - assumed 'LEADOMA_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/leadoma/includes/pages/customers/components/basic-info.php on line 12
- > PHP Warning
include(LEADOMA_DIRincludes/api/auth/customers.php): failed to open stream: No such file or directory in wp-content/plugins/leadoma/includes/api/api.php on line 146
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/leadoma/includes/pages/admin/verify-email.php:21
- > PHP Warning
Use of undefined constant LEADOMA_DIR - assumed 'LEADOMA_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/leadoma/includes/api/api.php on line 145
- > PHP Warning
Use of undefined constant LEADOMA_DIR - assumed 'LEADOMA_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/leadoma/includes/pages/auth/auth.php on line 64
- > PHP Warning
Use of undefined constant LEADOMA_DIR - assumed 'LEADOMA_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/leadoma/includes/api/api.php on line 144
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/leadoma/includes/pages/auth/auth.php:84
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leadoma/includes/api/auth/login-signup.php:13
- > PHP Warning
Use of undefined constant LEADOMA_DIR_URL - assumed 'LEADOMA_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/leadoma/includes/pages/auth/auth.php on line 48
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/leadoma/includes/pages/tags/tags.php:173
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=leadoma
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=leadoma 216:28 Uncaught TypeError: Cannot read properties of null (reading 'customers_count')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Contributors: Plugin contributors field is missing
leadoma/leadoma.php 92% from 13 tests
The principal PHP file in "Leadoma Plugin" v. 2.3.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
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 detected22,220 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 374 | 146 | 15,010 |
CSS | 9 | 149 | 78 | 3,637 |
PHP | 24 | 394 | 204 | 2,659 |
SVG | 21 | 5 | 1 | 914 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 83.33% |
▷ Protected methods | 4 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 56 | |
▷ Named functions | 55 | 98.21% |
▷ Anonymous functions | 1 | 1.79% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/pages/icon.png | 0.42KB | 0.37KB | ▼ 11.63% |
admin/images/temp/profile.png | 18.25KB | 6.83KB | ▼ 62.58% |