Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▲12.75ms] Passed 4 tests
Analyzing server-side resources used by Leader
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 51.76 ▲8.55 |
Dashboard /wp-admin | 3.90 ▲0.60 | 64.96 ▲14.49 |
Posts /wp-admin/edit.php | 3.95 ▲0.60 | 64.54 ▲15.76 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 110.35 ▲13.10 |
Media Library /wp-admin/upload.php | 3.76 ▲0.53 | 50.96 ▲14.87 |
Welcome Mail /wp-admin/edit.php?post_type=leader&page=leader_welcoming | 3.80 | 51.45 |
Leader Box /wp-admin/edit.php?post_type=leader | 3.87 | 53.63 |
Social Signature /wp-admin/edit.php?post_type=leader&page=leader_engaging | 3.85 | 51.54 |
Add New Leader /wp-admin/post-new.php?post_type=leader | 3.98 | 69.10 |
Server storage [IO: ▲6.30MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 317 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
lr_fields |
db_upgraded |
Browser metrics Passed 4 tests
Leader: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,017 ▲282 | 13.88 ▼0.49 | 8.33 ▲6.38 | 38.82 ▼12.50 |
Dashboard /wp-admin | 2,251 ▲60 | 4.86 ▼0.03 | 97.45 ▼7.37 | 70.99 ▲29.32 |
Posts /wp-admin/edit.php | 2,146 ▲57 | 2.02 ▲0.01 | 39.98 ▲4.81 | 35.12 ▲2.96 |
Add New Post /wp-admin/post-new.php | 1,583 ▲50 | 18.40 ▼4.76 | 669.45 ▲0.46 | 65.38 ▲8.83 |
Media Library /wp-admin/upload.php | 1,448 ▲57 | 4.22 ▲0.04 | 98.77 ▼0.16 | 68.87 ▲26.53 |
Welcome Mail /wp-admin/edit.php?post_type=leader&page=leader_welcoming | 2,381 | 5.87 | 129.24 | 166.65 |
Leader Box /wp-admin/edit.php?post_type=leader | 1,752 | 1.94 | 34.40 | 57.92 |
Social Signature /wp-admin/edit.php?post_type=leader&page=leader_engaging | 2,654 | 6.16 | 113.31 | 130.45 |
Add New Leader /wp-admin/post-new.php?post_type=leader | 3,576 | 6.49 | 142.02 | 99.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
Please take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/leader/admin/partials/leader-social-bar.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/leader/admin/partials/leader-form.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/leader/admin/partials/leader-video-popup.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/leader/admin/partials/leader-hello-bar.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/leader/admin/partials/leader-engaging.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/leader/admin/partials/leader-welcoming.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=leader
- > Javascript (severe) in unknown
/wp-content/plugins/leader/admin/js/leader-admin.js?ver=2.6.1 474:16 Uncaught TypeError: $ is not a function
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=leader
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $ is not a function" "TypeError: $ is not a function\n at get_waves (/wp-content/plugins/leader/admin/js/leader-admin.js?ver=2.6.1:475:17)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/leader/admin/js/leader-admin.js?ver=2.6.1:88:3)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=leader
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $ is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: lead capture, contact form, marketing automation, hello bar, crm
leader/leader.php Passed 13 tests
The main file in "Leader" v. 2.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
45 characters long description:
Leader - lead capture tool that work for you.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin81,630 lines of code in 283 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 5,419 | 602 | 35,646 |
JavaScript | 28 | 4,137 | 4,468 | 21,699 |
Sass | 222 | 3,813 | 2,777 | 20,481 |
PHP | 17 | 239 | 775 | 3,214 |
PO File | 1 | 213 | 233 | 590 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 42.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 209.00 |
Average method complexity | 5.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.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 | 78 | |
▷ Static methods | 2 | 2.56% |
▷ Public methods | 66 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 15.38% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 0.29MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/leader-snapchat.png | 2.35KB | 1.62KB | ▼ 31.14% |
admin/images/leader-avater15X15.png | 1.06KB | 0.86KB | ▼ 18.22% |
admin/images/bcard/phone2.png | 6.87KB | 4.08KB | ▼ 40.67% |
admin/images/contact.png | 3.94KB | 2.21KB | ▼ 43.87% |
admin/images/leader-tweet.png | 2.62KB | 1.75KB | ▼ 33.37% |