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
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.46ms] Passed 4 tests
Server-side resources used by Teamleader CRM Forms
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 42.25 ▲0.32 |
Dashboard /wp-admin | 3.54 ▲0.23 | 52.18 ▼0.72 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 47.60 ▼6.75 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 85.82 ▼10.50 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.48 ▲0.12 |
Teamleader /wp-admin/options-general.php?page=teamleader | 3.45 | 38.71 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Teamleader CRM Forms
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.63 ▲0.27 | 1.73 ▼0.65 | 43.86 ▼0.22 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.01 | 96.57 ▲9.34 | 43.25 ▼2.63 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▼0.00 | 35.88 ▼2.64 | 33.17 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 18.12 ▼4.85 | 649.62 ▼46.89 | 90.16 ▲34.39 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.00 | 98.49 ▼10.55 | 44.96 ▼3.37 |
Teamleader /wp-admin/options-general.php?page=teamleader | 973 | 2.30 | 23.70 | 49.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Teamleader\\Controllers\\AbstractController' not found in wp-content/plugins/teamleader-form-integration/src/Controllers/AjaxController.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/teamleader-form-integration/vendor/google/recaptcha/tests/ReCaptcha/ReCaptchaTest.php:29
- > PHP Warning
require_once(wp-content/plugins/teamleader-form-integration/vendor/google/recaptcha/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/teamleader-form-integration/vendor/google/recaptcha/examples/example-captcha.php on line 36
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/teamleader-form-integration/vendor/google/recaptcha/tests/ReCaptcha/ResponseTest.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Teamleader\\Interfaces\\DependencyInterface' not found in wp-content/plugins/teamleader-form-integration/src/Helpers/AbstractHelper.php:12
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/teamleader-form-integration/vendor/google/recaptcha/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/teamleader-form-integration/vendor/google/recaptcha/examples/example-captcha.php on line 36
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/teamleader-form-integration/templates/admin.php:5
- > PHP Fatal error
Uncaught Error: Class 'Teamleader\\Helpers\\AbstractHelper' not found in wp-content/plugins/teamleader-form-integration/src/Helpers/FieldsHelper.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/teamleader-form-integration/vendor/google/recaptcha/tests/ReCaptcha/RequestParametersTest.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/teamleader-form-integration/vendor/google/recaptcha/tests/ReCaptcha/RequestMethod/PostTest.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 ('/assets/1._CRM_Manage_your_contacts.png'), #2 ('/assets/1._Invoicing_time_records.png'), #3 ('/assets/1._Sales_Automate_your_sales_process.png'), #4 ('/assets/2._Calendar_Manage_your_appointments.png'), #5 ('/assets/2._CRM_action_summary.png'), #6 ('/assets/2._Deals.png'), #7 ('/assets/2._Invoicing_automate_your_recurring_business.png'), #8 ('/assets/3._Calendar_Synchronise_your_calendar.png'), #9 ('/assets/3._Calendar_view.png'), #10 ('/assets/3._CRM_Simple_client_segmentation.png'), #11 ('/assets/4._Invoicing_manage_uninvoiced_time.png'), #12 ('/assets/4._Sales_manage_your_sales_team.png'), #13 ('/assets/6._Invoicing_Link_with_the_accounting.png'), #14 ('/assets/banner-1544x500.png'), #15 ('/assets/icon-256x256.png'), #16 ('/assets/icon.svg'), #17 ('/assets/Project_management_Manage_all_your_projects_project_planning.png'), #18 ('/assets/Project_management_Manage_all_your_projects_projects.png'), #19 ('/assets/project_management_plan_a_project_people.png'), #20 ('/assets/Project_management_Start_a_new_project_2.png'), #21 ('/assets/Project_management_Start_a_new_project.png'), #22 ('/assets/Stats_Invoices.png'), #23 ('/assets/Ticket_message_view.png'), #24 ('/assets/Tickets_add_ticket.png'), #25 ('/assets/Tickets_flow.png'), #26 ('/assets/Tickets_general_view.png'), #27 ('/assets/Time_tracking_follow_up_with_your_employees.png'), #28 ('/assets/Work_orders_on_the_road.png')
teamleader-form-integration/plugin.php 92% from 13 tests
"Teamleader CRM Forms" version 2.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("teamleader-form-integration.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,517 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 412 | 1,179 | 1,973 |
JavaScript | 2 | 7 | 1 | 269 |
Markdown | 3 | 33 | 0 | 115 |
JSON | 2 | 0 | 0 | 77 |
CSS | 3 | 9 | 2 | 51 |
XML | 1 | 0 | 0 | 17 |
YAML | 1 | 4 | 0 | 15 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 2 | 7.69% |
▷ Concrete classes | 24 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 112 | |
▷ Static methods | 14 | 12.50% |
▷ Public methods | 105 | 93.75% |
▷ Protected methods | 6 | 5.36% |
▷ Private methods | 1 | 0.89% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/logo.png | 0.37KB | 0.36KB | ▼ 1.07% |