Benchmarks
Plugin footprint 65% 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.15MB] [CPU: ▼2.70ms] Passed 4 tests
An overview of server-side resources used by CF7 Spreadsheets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 43.96 ▲4.32 |
Dashboard /wp-admin | 3.44 ▲0.13 | 44.44 ▼3.48 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 48.42 ▲0.29 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 91.03 ▼8.87 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.58 ▲1.25 |
Server storage [IO: ▲14.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4,906 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CF7 Spreadsheets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲72 | 13.22 ▼1.47 | 4.36 ▲2.65 | 39.04 ▼0.19 |
Dashboard /wp-admin | 2,224 ▲32 | 5.87 ▲0.94 | 98.67 ▼9.79 | 39.64 ▼5.40 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.04 ▼0.00 | 40.61 ▲1.60 | 36.06 ▲2.13 |
Add New Post /wp-admin/post-new.php | 1,536 ▲6 | 18.48 ▼4.86 | 615.06 ▼65.18 | 58.23 ▼2.61 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.27 ▲0.07 | 98.78 ▼1.38 | 44.34 ▲1.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'uninstall' not found or invalid function name
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 4095× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/cf7-spreadsheets/vendor/google/apiclient-services/src/Google/Service/Script/ExecutionResponse.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/cf7-spreadsheets/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1Policy.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/cf7-spreadsheets/vendor/google/apiclient-services/src/Google/Service/Storagetransfer/Date.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/cf7-spreadsheets/vendor/google/apiclient-services/src/Google/Service/Slides/VideoProperties.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/cf7-spreadsheets/vendor/google/apiclient-services/src/Google/Service/PeopleService/Event.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/cf7-spreadsheets/vendor/google/apiclient-services/src/Google/Service/ToolResults/Image.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/cf7-spreadsheets/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/JobsReports.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/cf7-spreadsheets/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/IpConfiguration.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/cf7-spreadsheets/vendor/google/apiclient-services/src/Google/Service/Storagetransfer/TransferOperation.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/cf7-spreadsheets/vendor/google/apiclient-services/src/Google/Service/YouTube/PromotedItem.php:18
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== cf7-spreadsheets ===
)
cf7-spreadsheets/CF7-spreadsheets.php 85% from 13 tests
Analyzing the main PHP file in "CF7 Spreadsheets" version 2.3.2
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cf7-spreadsheets.php" instead of "CF7-spreadsheets.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected304,266 lines of code in 4,868 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4,803 | 18,591 | 148,382 | 297,626 |
Markdown | 34 | 1,570 | 0 | 4,862 |
JSON | 19 | 0 | 0 | 1,279 |
JavaScript | 1 | 7 | 2 | 145 |
YAML | 4 | 19 | 0 | 97 |
PO File | 1 | 38 | 38 | 94 |
CSS | 1 | 18 | 0 | 90 |
XML | 4 | 7 | 0 | 64 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 2.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 628.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 28 | |
Traits | 6 | |
Classes | 4,794 | |
▷ Abstract classes | 10 | 0.21% |
▷ Concrete classes | 4,784 | 99.79% |
▷ Final classes | 10 | 0.21% |
Methods | 33,979 | |
▷ Static methods | 150 | 0.44% |
▷ Public methods | 33,507 | 98.61% |
▷ Protected methods | 211 | 0.62% |
▷ Private methods | 261 | 0.77% |
Functions | 265 | |
▷ Named functions | 72 | 27.17% |
▷ Anonymous functions | 193 | 72.83% |
Constants | 828 | |
▷ Global constants | 21 | 2.54% |
▷ Class constants | 807 | 97.46% |
▷ Public constants | 807 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 51.04KB | 19.67KB | ▼ 61.46% |