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
Installer ran successfully
Server metrics [RAM: ▼0.26MB] [CPU: ▼17.30ms] Passed 4 tests
An overview of server-side resources used by Contractor Commerce Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 32.58 ▼10.83 |
Dashboard /wp-admin | 3.37 ▲0.07 | 47.96 ▼4.19 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 50.68 ▲1.23 |
Add New Post /wp-admin/post-new.php | 4.66 ▼1.23 | 47.08 ▼55.42 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.92 ▲1.60 |
Contractor Commerce /wp-admin/options-general.php?page=contractor_commerce | 3.24 | 32.19 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Contractor Commerce Integration: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 13.64 ▼0.74 | 8.16 ▲6.18 | 43.07 ▼1.09 |
Dashboard /wp-admin | 2,223 ▲17 | 5.82 ▲0.76 | 106.03 ▲2.30 | 35.13 ▼9.66 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.99 ▼0.00 | 40.81 ▲6.65 | 34.87 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.35 ▲5.81 | 665.85 ▼45.00 | 63.48 ▲8.39 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.23 ▼0.05 | 109.81 ▲6.27 | 46.33 ▲0.91 |
Contractor Commerce /wp-admin/options-general.php?page=contractor_commerce | 880 | 2.01 | 24.15 | 26.00 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=contractor_commerce
- > Notice in wp-content/plugins/contractor-commerce-integration/admin/partials/contractor-commerce-admin-settings.php+72
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/contractor-commerce-integration/public/partials/contractor-commerce-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contractor-commerce-integration/admin/partials/contractor-commerce-admin-settings.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 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
3 plugin tags: hvac, contractor, ecommerce
contractor-commerce-integration/contractor-commerce.php 85% from 13 tests
The main PHP script in "Contractor Commerce Integration" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("contractor-commerce-integration.php" instead of "contractor-commerce.php")
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
No dangerous file extensions were detected310 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 160 | 535 | 254 |
SVG | 1 | 0 | 0 | 40 |
CSS | 2 | 0 | 4 | 10 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
PNG images were not found in this plugin