Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.03ms] Passed 4 tests
An overview of server-side resources used by Quick Demo Import
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.10 ▼4.96 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.61 ▲1.91 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.84 ▲2.08 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.92 ▼21.68 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.94 ▲0.61 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 152 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Quick Demo Import
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲82 | 13.17 ▼1.20 | 1.48 ▼0.41 | 41.70 ▼5.65 |
Dashboard /wp-admin | 2,223 ▲38 | 4.87 ▼0.97 | 105.96 ▲5.12 | 39.22 ▼5.95 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.07 ▲0.05 | 40.05 ▲2.71 | 35.22 ▲1.27 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 23.49 ▲5.93 | 677.52 ▼9.37 | 59.20 ▲6.42 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.32 ▲0.03 | 93.23 ▼3.86 | 41.76 ▲0.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 100× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/Installer.php:14
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php:4
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: one click import, importer, theme demos, demo
quick-demo-import/qdi.php 92% from 13 tests
The main PHP script in "Quick Demo Import" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("quick-demo-import.php" instead of "qdi.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected9,973 lines of code in 146 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 1,194 | 1,894 | 5,989 |
JavaScript | 8 | 507 | 489 | 2,469 |
CSS | 4 | 181 | 59 | 1,356 |
JSON | 1 | 0 | 0 | 159 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 6.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 123 | |
▷ Abstract classes | 1 | 0.81% |
▷ Concrete classes | 122 | 99.19% |
▷ Final classes | 1 | 0.82% |
Methods | 245 | |
▷ Static methods | 77 | 31.43% |
▷ Public methods | 143 | 58.37% |
▷ Protected methods | 36 | 14.69% |
▷ Private methods | 66 | 26.94% |
Functions | 14 | |
▷ Named functions | 6 | 42.86% |
▷ Anonymous functions | 8 | 57.14% |
Constants | 12 | |
▷ Global constants | 8 | 66.67% |
▷ Class constants | 4 | 33.33% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin