Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.27MB] [CPU: ▲5.51ms] Passed 4 tests
Analyzing server-side resources used by Kristall Integration Plugin for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.66 ▲1.20 | 45.00 ▲4.35 |
Dashboard /wp-admin | 4.67 ▲1.36 | 57.25 ▲6.68 |
Posts /wp-admin/edit.php | 4.70 ▲1.34 | 58.36 ▲9.87 |
Add New Post /wp-admin/post-new.php | 7.16 ▲1.27 | 100.33 ▲1.13 |
Media Library /wp-admin/upload.php | 4.50 ▲1.27 | 45.10 ▲11.74 |
Server storage [IO: ▲19.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,840 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Kristall Integration Plugin for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,141 ▲384 | 17.14 ▲2.78 | 5.62 ▲3.42 | 39.52 ▼12.75 |
Dashboard /wp-admin | 2,421 ▲236 | 7.79 ▲2.96 | 161.38 ▲43.25 | 43.52 ▼1.95 |
Posts /wp-admin/edit.php | 2,491 ▲399 | 5.18 ▲3.17 | 67.34 ▲31.63 | 35.11 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,574 ▲60 | 22.97 ▲5.27 | 583.04 ▼80.05 | 35.72 ▼21.66 |
Media Library /wp-admin/upload.php | 1,631 ▲246 | 5.38 ▲1.19 | 100.30 ▲0.39 | 42.22 ▼2.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/kristall-integration/connector/vendor/markbaker/matrix/buildPhar.php
- > /wp-content/plugins/kristall-integration/connector/vendor/markbaker/complex/examples/testOperations.php
- > /wp-content/plugins/kristall-integration/connector/vendor/markbaker/complex/examples/testFunctions.php
- > /wp-content/plugins/kristall-integration/connector/vendor/markbaker/complex/examples/complexTest.php
- 640× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader' not found in wp-content/plugins/kristall-integration/connector/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods.php:29
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Writer\\ODText\\Part\\AbstractPart' not found in wp-content/plugins/kristall-integration/connector/vendor/phpoffice/phpword/src/PhpWord/Writer/ODText/Part/Manifest.php:25
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef_URI_IPv4' not found in wp-content/plugins/kristall-integration/connector/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv6.php:9
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/kristall-integration/connector/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Presentation.php:13
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Reader\\Word2007\\AbstractPart' not found in wp-content/plugins/kristall-integration/connector/vendor/phpoffice/phpword/src/PhpWord/Reader/Word2007/Settings.php:30
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\Pdf' not found in wp-content/plugins/kristall-integration/connector/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf/Dompdf.php:8
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Writer\\HTML\\Style\\AbstractStyle' not found in wp-content/plugins/kristall-integration/connector/vendor/phpoffice/phpword/src/PhpWord/Writer/HTML/Style/Font.php:27
- > PHP Fatal error
Uncaught Error: Interface 'PhpOffice\\Common\\Adapter\\Zip\\ZipInterface' not found in wp-content/plugins/kristall-integration/connector/vendor/phpoffice/common/src/Common/Adapter/Zip/PclZipAdapter.php:6
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\WriterPart' not found in wp-content/plugins/kristall-integration/connector/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Chart.php:17
- > PHP Warning
Use of undefined constant KRISTALL_INTEGRATION_MAIN_DIR - assumed 'KRISTALL_INTEGRATION_MAIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/kristall-integration/public/class-kristall-integration-shortcodes.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: print, e-commerce, woocommerce, shop, yml
kristall-integration/kristall-integration.php 92% from 13 tests
"Kristall Integration Plugin for WordPress" version 3.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 605 characters long)
Code Analysis 95% from 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 plugin209,933 lines of code in 1,341 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,112 | 30,528 | 81,371 | 154,619 |
JavaScript | 112 | 5,565 | 11,922 | 42,743 |
CSS | 29 | 423 | 301 | 7,262 |
Markdown | 34 | 695 | 0 | 2,056 |
JSON | 18 | 0 | 0 | 1,824 |
SVG | 20 | 93 | 0 | 1,060 |
YAML | 8 | 31 | 16 | 180 |
XML | 6 | 20 | 6 | 160 |
Bourne Shell | 1 | 11 | 0 | 28 |
INI | 1 | 1 | 1 | 1 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,396)
- Method cyclomatic complexity should be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 25.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,396.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 105 | |
Interfaces | 35 | |
Traits | 0 | |
Classes | 931 | |
▷ Abstract classes | 63 | 6.77% |
▷ Concrete classes | 868 | 93.23% |
▷ Final classes | 21 | 2.42% |
Methods | 7,776 | |
▷ Static methods | 1,289 | 16.58% |
▷ Public methods | 5,516 | 70.94% |
▷ Protected methods | 1,022 | 13.14% |
▷ Private methods | 1,238 | 15.92% |
Functions | 286 | |
▷ Named functions | 240 | 83.92% |
▷ Anonymous functions | 46 | 16.08% |
Constants | 1,752 | |
▷ Global constants | 169 | 9.65% |
▷ Class constants | 1,583 | 90.35% |
▷ Public constants | 1,566 | 98.93% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
103 compressed PNG files occupy 1.31MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
connector/assets/images/connector_sub/dimension.png | 0.48KB | 0.48KB | 0.00% |
connector/assets/images/resize.png | 0.08KB | 0.11KB | 0.00% |
connector/assets/images/edit_onlineconvert.png | 0.91KB | 0.91KB | 0.00% |
connector/assets/images/no_photo.png | 4.13KB | 2.42KB | ▼ 41.32% |
connector/assets/images/edit_tinymce.png | 0.24KB | 0.25KB | 0.00% |