Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.35ms] Passed 4 tests
This is a short check of server-side resources used by Lead2Team
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.77 ▲1.98 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.37 ▼5.17 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.42 ▲3.64 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.42 ▼6.02 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.57 ▼0.18 |
Lead2team /wp-admin/tools.php?page=lead2team-dashboard | 3.29 | 32.20 |
Server storage [IO: ▲1.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Lead2Team
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.21 ▼1.37 | 1.67 ▼0.24 | 39.30 ▼4.16 |
Dashboard /wp-admin | 2,218 ▲27 | 5.90 ▼0.01 | 109.48 ▼2.25 | 41.34 ▲2.18 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.08 ▲0.02 | 41.29 ▲7.78 | 35.62 ▲2.59 |
Add New Post /wp-admin/post-new.php | 6,870 ▲5,335 | 22.34 ▼0.60 | 995.21 ▲340.03 | 63.22 ▼6.85 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.26 ▼0.03 | 97.33 ▲3.35 | 41.76 ▲1.56 |
Lead2team /wp-admin/tools.php?page=lead2team-dashboard | 1,081 | 2.06 | 38.92 | 30.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/lead2team/public/partials/lead2team-public-display.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/lead2team/admin/partials/lead2team-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Class 'Lead2team' not found in wp-content/plugins/lead2team/admin/partials/lead2team-admin-post-metabox.php:458
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lead2team/admin/class-lead2team-admin.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
lead2team/lead2team.php Passed 13 tests
Analyzing the main PHP file in "Lead2Team" version 2.0.0
104 characters long description:
Lead2Team's official WordPress plugin allows you to quickly install our widget on any WordPress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected3,440 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 131 | 75 | 1,530 |
PHP | 13 | 266 | 615 | 1,033 |
CSS | 3 | 81 | 42 | 799 |
PO File | 1 | 29 | 45 | 73 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 22.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 4.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 2 | 4.55% |
▷ Public methods | 39 | 88.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.36% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 1.24MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 413.33KB | 179.61KB | ▼ 56.54% |
admin/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/icon-128x128.png | 9.67KB | 5.42KB | ▼ 43.93% |
admin/images/Lead2Team-logo.png | 2.43KB | 2.57KB | 0.00% |
assets/screenshot-1.png | 130.80KB | 39.46KB | ▼ 69.83% |