Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.93MB] [CPU: ▲6.71ms] Passed 4 tests
This is a short check of server-side resources used by Import any XML or CSV File to WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.32 ▲0.86 | 48.44 ▲7.76 |
Dashboard /wp-admin | 4.27 ▲0.93 | 57.49 ▼2.54 |
Posts /wp-admin/edit.php | 4.39 ▲1.03 | 59.76 ▲14.00 |
Add New Post /wp-admin/post-new.php | 6.86 ▲0.97 | 104.73 ▲7.63 |
Media Library /wp-admin/upload.php | 4.20 ▲0.97 | 51.65 ▲16.92 |
Manage Imports /wp-admin/admin.php?page=pmxi-admin-manage | 4.35 | 54.15 |
Settings /wp-admin/admin.php?page=pmxi-admin-settings | 4.36 | 64.10 |
Support /wp-admin/admin.php?page=pmxi-admin-help | 4.24 | 47.79 |
History /wp-admin/admin.php?page=pmxi-admin-history | 4.02 | 32.14 |
New Import /wp-admin/admin.php?page=pmxi-admin-import | 6.66 | 57.77 |
Server storage [IO: ▲8.87MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 533 new files
Database: 7 new tables, 7 new options
New tables |
---|
wp_pmxi_images |
wp_pmxi_hash |
wp_pmxi_history |
wp_pmxi_imports |
wp_pmxi_templates |
wp_pmxi_posts |
wp_pmxi_files |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
pmxi_is_migrated |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Import any XML or CSV File to WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 14.37 ▼0.16 | 1.72 ▲0.07 | 43.88 ▲2.97 |
Dashboard /wp-admin | 2,252 ▲75 | 5.53 ▼0.13 | 85.30 ▼8.98 | 38.25 ▼1.25 |
Posts /wp-admin/edit.php | 2,159 ▲62 | 2.02 ▲0.05 | 35.75 ▲3.04 | 31.10 ▼5.81 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 18.20 ▼4.81 | 596.50 ▼51.35 | 76.15 ▲22.59 |
Media Library /wp-admin/upload.php | 1,462 ▲62 | 4.30 ▲0.13 | 96.67 ▼1.28 | 44.28 ▲1.58 |
Manage Imports /wp-admin/admin.php?page=pmxi-admin-manage | 1,327 | 4.80 | 80.97 | 38.89 |
Settings /wp-admin/admin.php?page=pmxi-admin-settings | 1,566 | 5.27 | 92.79 | 50.27 |
Support /wp-admin/admin.php?page=pmxi-admin-help | 987 | 4.76 | 55.59 | 31.48 |
History /wp-admin/admin.php?page=pmxi-admin-history | 1,290 | 4.85 | 51.53 | 27.66 |
New Import /wp-admin/admin.php?page=pmxi-admin-import | 1,923 | 5.42 | 72.76 | 35.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 7 tables in the database
- wp_pmxi_templates
- wp_pmxi_files
- wp_pmxi_hash
- wp_pmxi_history
- wp_pmxi_images
- wp_pmxi_posts
- wp_pmxi_imports
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- pmxi_is_migrated
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-all-import/views/admin/import/evaluate_variations.php
- 150× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-all-import/views/admin/help/index.php:1
- > PHP Fatal error
Uncaught Error: Interface 'Prewk\\XmlStringStreamer\\StreamInterface' not found in wp-content/plugins/wp-all-import/classes/XmlStreamReader/prewk/xml-string-streamer/src/XmlStringStreamer/Stream/File.php:5
- > PHP Fatal error
Uncaught Error: Class 'PMXI_Model_List' not found in wp-content/plugins/wp-all-import/models/import/list.php:3
- > PHP Fatal error
Uncaught Error: Interface 'PHPExcel_IComparable' not found in wp-content/plugins/wp-all-import/classes/PHPExcel/Comment.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_CachedObjectStorage_CacheBase' not found in wp-content/plugins/wp-all-import/classes/PHPExcel/CachedObjectStorage/DiscISAM.php:28
- > PHP Notice
Undefined variable: is_csv in wp-content/plugins/wp-all-import/views/admin/import/evaluate.php on line 2
- > PHP Notice
Undefined variable: tagno in wp-content/plugins/wp-all-import/views/admin/import/preview_prices.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'PMXI_Controller_Admin' not found in wp-content/plugins/wp-all-import/controllers/admin/settings.php:7
- > PHP Notice
Undefined variable: isWizard in wp-content/plugins/wp-all-import/views/admin/import/options/_buttons_template.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Worksheet_Drawing' not found in wp-content/plugins/wp-all-import/classes/PHPExcel/Worksheet/HeaderFooterDrawing.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Choose file.), #2 (Filtering options.), #3 (Choose where to import your data.), #4 (Manage imports.)
- Tags: There are too many tags (23 tag instead of maximum 10)
wp-all-import/plugin.php 85% from 13 tests
This is the main PHP file of "Import any XML or CSV File to WordPress" version 3.7.3, 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:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-all-import.php" instead of "plugin.php")
- Description: Keep the plugin description shorter than 140 characters (currently 220 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin90,245 lines of code in 386 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 352 | 11,541 | 32,221 | 65,481 |
PO File | 6 | 5,808 | 7,656 | 11,791 |
JavaScript | 13 | 946 | 536 | 6,617 |
CSS | 12 | 331 | 356 | 6,257 |
SVG | 3 | 3 | 1 | 99 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,625)
- Method cyclomatic complexity should be reduced to less than 100 (currently 1,218)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 51.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,625.00 |
Average method complexity | 5.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1,218.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 230 | |
▷ Abstract classes | 14 | 6.09% |
▷ Concrete classes | 216 | 93.91% |
▷ Final classes | 3 | 1.39% |
Methods | 2,710 | |
▷ Static methods | 656 | 24.21% |
▷ Public methods | 2,304 | 85.02% |
▷ Protected methods | 117 | 4.32% |
▷ Private methods | 289 | 10.66% |
Functions | 114 | |
▷ Named functions | 110 | 96.49% |
▷ Anonymous functions | 4 | 3.51% |
Constants | 818 | |
▷ Global constants | 131 | 16.01% |
▷ Class constants | 687 | 83.99% |
▷ Public constants | 687 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
85 PNG files occupy 1.18MB with 0.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/ui_4.0/info.png | 1.62KB | 0.75KB | ▼ 53.76% |
static/img/ui_4.0/logo.png | 4.94KB | 2.24KB | ▼ 54.65% |
screenshot-4.png | 78.42KB | 20.68KB | ▼ 73.63% |
static/img/f_logo_RGB-Blue_250.png | 9.54KB | 4.65KB | ▼ 51.25% |
static/js/jquery/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png | 0.38KB | 0.16KB | ▼ 58.18% |