Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.76MB] [CPU: ▼1.60ms] Passed 4 tests
A check of server-side resources used by LSX Content Importer for Wetu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.26 ▲0.80 | 51.55 ▲6.88 |
Dashboard /wp-admin | 4.10 ▲0.79 | 58.64 ▲5.19 |
Posts /wp-admin/edit.php | 4.15 ▲0.79 | 53.59 ▼4.66 |
Add New Post /wp-admin/post-new.php | 6.62 ▲0.73 | 94.08 ▼13.43 |
Media Library /wp-admin/upload.php | 3.96 ▲0.73 | 44.08 ▲6.52 |
Importer /wp-admin/admin.php?page=lsx-wetu-importer | 3.93 | 42.10 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for LSX Content Importer for Wetu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.21 | 1.71 ▼0.12 | 43.65 ▼3.33 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.05 | 101.87 ▲6.10 | 43.55 ▲3.82 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.09 | 38.58 ▼1.70 | 34.77 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.31 ▲0.10 | 694.38 ▲39.18 | 59.50 ▲10.86 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.24 ▲0.06 | 98.21 ▼19.10 | 44.98 ▼0.66 |
Importer /wp-admin/admin.php?page=lsx-wetu-importer | 968 | 2.02 | 24.46 | 26.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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 50% 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
Almost there! Just fix the following items
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'LSX_WETU_Importer' not found in wp-content/plugins/lsx-importer-for-wetu/classes/class-lsx-wetu-importer-tours.php:10
- > PHP Fatal error
Uncaught Error: Class 'LSX_WETU_Importer_Admin' not found in wp-content/plugins/lsx-importer-for-wetu/classes/class-lsx-wetu-importer-connect-accommodation.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function lsx\\wetu_importer\\classes\\add_action() in wp-content/plugins/lsx-importer-for-wetu/classes/class-wetu-automation.php:40
- > PHP Fatal error
Uncaught Error: Class 'LSX_WETU_Importer' not found in wp-content/plugins/lsx-importer-for-wetu/classes/class-lsx-wetu-importer-banner-integration.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lsx-importer-for-wetu/classes/class-lsx-wetu-importer.php:200
- > PHP Fatal error
Uncaught Error: Class 'LSX_WETU_Importer' not found in wp-content/plugins/lsx-importer-for-wetu/classes/class-lsx-wetu-importer-accommodation.php:10
- > PHP Fatal error
Uncaught Error: Class 'LSX_WETU_Importer' not found in wp-content/plugins/lsx-importer-for-wetu/classes/class-lsx-wetu-importer-destination.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lsx-importer-for-wetu/lsx-importer-for-wetu.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in lsx-importer-for-wetu/assets to your readme.txt
lsx-importer-for-wetu/lsx-importer-for-wetu.php 92% from 13 tests
"LSX Content Importer for Wetu" version 1.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin11,083 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 4,870 |
PHP | 12 | 871 | 1,333 | 4,394 |
JavaScript | 5 | 65 | 40 | 726 |
Sass | 1 | 37 | 0 | 283 |
PO File | 1 | 124 | 126 | 261 |
CSS | 3 | 3 | 13 | 199 |
YAML | 4 | 5 | 0 | 185 |
Markdown | 1 | 63 | 0 | 121 |
XML | 1 | 13 | 9 | 44 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 99.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 296.00 |
Average method complexity | 7.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 163 | |
▷ Static methods | 8 | 4.91% |
▷ Public methods | 162 | 99.39% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.61% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin