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.99MB] [CPU: ▲9.20ms] Passed 4 tests
Analyzing server-side resources used by WP Import Export Lite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.46 ▲0.99 | 47.39 ▲3.38 |
Dashboard /wp-admin | 4.31 ▲1.00 | 66.77 ▲11.87 |
Posts /wp-admin/edit.php | 4.36 ▲1.00 | 65.65 ▲16.15 |
Add New Post /wp-admin/post-new.php | 6.89 ▲1.00 | 105.74 ▲5.39 |
Media Library /wp-admin/upload.php | 4.22 ▲0.99 | 53.77 ▲18.51 |
New Import /wp-admin/admin.php?page=wpie-new-import | 4.51 | 61.56 |
Extensions /wp-admin/admin.php?page=wpie-extensions | 4.22 | 49.50 |
Manage Export /wp-admin/admin.php?page=wpie-manage-export | 4.33 | 48.08 |
Settings /wp-admin/admin.php?page=wpie-settings | 4.34 | 51.33 |
Manage Import /wp-admin/admin.php?page=wpie-manage-import | 4.33 | 48.17 |
New Export /wp-admin/admin.php?page=wpie-new-export | 4.37 | 48.95 |
Server storage [IO: ▲17.90MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- The plugin illegally modified 2 files (0.80KB) outside of "wp-content/plugins/wp-import-export-lite/" and "wp-content/uploads/"
- (new file) robots.txt
- (modified) .htaccess
Filesystem: 1,887 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_wpie_template |
New WordPress options |
---|
wpie_plugin_version |
wpie_is_updated_file_security |
widget_recent-comments |
wpie_install_date |
widget_recent-posts |
wpie_bg_and_cron_processing |
theysaidso_admin_options |
wpie_flush_rewrite_rules |
wpie_is_admin_notice_clear |
wpie_db_version |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Import Export Lite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 14.71 ▲0.29 | 1.93 ▲0.14 | 38.03 ▼5.99 |
Dashboard /wp-admin | 2,244 ▲56 | 5.89 ▲1.00 | 115.43 ▼0.94 | 40.51 ▼4.14 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 2.02 ▼0.02 | 42.01 ▼2.90 | 32.94 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,556 ▲14 | 23.34 ▲5.09 | 613.50 ▼18.80 | 51.16 ▼4.25 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.22 ▲0.03 | 100.01 ▼9.76 | 39.76 ▼1.97 |
New Import /wp-admin/admin.php?page=wpie-new-import | 2,715 | 3.06 | 78.54 | 92.39 |
Extensions /wp-admin/admin.php?page=wpie-extensions | 1,903 | 2.09 | 29.87 | 45.79 |
Manage Export /wp-admin/admin.php?page=wpie-manage-export | 1,068 | 2.02 | 33.14 | 41.00 |
Settings /wp-admin/admin.php?page=wpie-settings | 1,261 | 2.23 | 39.13 | 34.39 |
Manage Import /wp-admin/admin.php?page=wpie-manage-import | 1,075 | 2.03 | 33.19 | 37.68 |
New Export /wp-admin/admin.php?page=wpie-new-export | 2,298 | 2.93 | 50.48 | 33.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_wpie_template
- The uninstall procedure has failed, leaving 13 options in the database
- wpie_install_date
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- wpie_bg_and_cron_processing
- db_upgraded
- wpie_is_admin_notice_clear
- wpie_db_version
- wpie_plugin_version
- wpie_is_updated_file_security
- ...
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 no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-import-export-lite/vendor_deprecated/markbaker/matrix/buildPhar.php
- > /wp-content/plugins/wp-import-export-lite/vendor_deprecated/markbaker/complex/examples/complexTest.php
- > /wp-content/plugins/wp-import-export-lite/vendor_deprecated/markbaker/complex/examples/testOperations.php
- > /wp-content/plugins/wp-import-export-lite/vendor/markbaker/matrix/buildPhar.php
- > /wp-content/plugins/wp-import-export-lite/vendor_deprecated/markbaker/complex/examples/testFunctions.php
- 739× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\MaxMinBase' not found in wp-content/plugins/wp-import-export-lite/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Minimum.php:8
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Dimension' not found in wp-content/plugins/wp-import-export-lite/vendor_deprecated/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/RowDimension.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-import-export-lite/vendor/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Style\umberFormat\\BaseFormatter' not found in wp-content/plugins/wp-import-export-lite/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/PercentageFormatter.php:7
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIFilter' not found in wp-content/plugins/wp-import-export-lite/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/Munge.php:3
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/wp-import-export-lite/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ComplexFunctions.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/wp-import-export-lite/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Bdo.php:7
- > PHP Fatal error
Cannot declare interface SessionUpdateTimestampHandlerInterface, because the name is already in use in wp-content/plugins/wp-import-export-lite/vendor_deprecated/symfony/polyfill-php70/Resources/stubs/SessionUpdateTimestampHandlerInterface.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\WriterPart' not found in wp-content/plugins/wp-import-export-lite/vendor_deprecated/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php:22
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrTransform' not found in wp-content/plugins/wp-import-export-lite/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/ImgRequired.php:11
- > 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 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 need to be fixed:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
wp-import-export-lite/wp-import-export-lite.php 92% from 13 tests
This is the main PHP file of "WP Import Export Lite" version 3.9.26, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin239,500 lines of code in 1,587 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,445 | 44,970 | 94,986 | 214,178 |
Markdown | 50 | 3,602 | 0 | 11,045 |
SVG | 5 | 0 | 0 | 9,567 |
JSON | 30 | 0 | 0 | 3,582 |
YAML | 13 | 134 | 12 | 592 |
JavaScript | 13 | 5 | 22 | 198 |
XML | 7 | 15 | 2 | 152 |
reStructuredText | 9 | 119 | 243 | 126 |
Bourne Again Shell | 1 | 6 | 3 | 24 |
CSS | 11 | 5 | 29 | 16 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
INI | 1 | 1 | 1 | 1 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,020)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 25.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,020.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 141 | |
Interfaces | 67 | |
Traits | 6 | |
Classes | 1,227 | |
▷ Abstract classes | 66 | 5.38% |
▷ Concrete classes | 1,161 | 94.62% |
▷ Final classes | 64 | 5.51% |
Methods | 10,883 | |
▷ Static methods | 2,782 | 25.56% |
▷ Public methods | 8,089 | 74.33% |
▷ Protected methods | 515 | 4.73% |
▷ Private methods | 2,279 | 20.94% |
Functions | 442 | |
▷ Named functions | 186 | 42.08% |
▷ Anonymous functions | 256 | 57.92% |
Constants | 2,521 | |
▷ Global constants | 79 | 3.13% |
▷ Class constants | 2,442 | 96.87% |
▷ Public constants | 2,263 | 92.67% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |