Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.06ms] Passed 4 tests
Analyzing server-side resources used by Di Themes Demo Site Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.61 ▼0.15 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.63 ▼13.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.71 ▲0.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.59 ▼15.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.70 ▲0.70 |
Server storage [IO: ▲18.63MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 122 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Di Themes Demo Site Importer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.24 ▼1.01 | 1.91 ▲0.06 | 45.45 ▲3.05 |
Dashboard /wp-admin | 2,206 ▲15 | 4.85 ▼1.18 | 111.69 ▲4.26 | 41.65 ▲0.12 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.05 | 36.93 ▼2.51 | 31.58 ▼6.22 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.24 ▲4.97 | 655.31 ▲56.38 | 51.18 ▼8.22 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.09 | 95.62 ▼3.23 | 40.96 ▼3.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/di-themes-demo-site-importer/di-themes-demo-site-importer.php
- > /wp-content/plugins/di-themes-demo-site-importer/inc/ocdi/one-click-demo-import.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/di-themes-demo-site-importer/inc/ocdi/inc/CustomizerOption.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/di-themes-demo-site-importer/inc/di-themes/di-ecommerce/import-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/di-themes-demo-site-importer/inc/di-themes/di-responsive/import-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/di-themes-demo-site-importer/inc/ocdi/inc/WXRImporter.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/di-themes-demo-site-importer/inc/di-themes/di-restaurant/import-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/di-themes-demo-site-importer/inc/ocdi/vendor/awesomemotive/wp-content-importer-v2/src/WPImporterLoggerCLI.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/di-themes-demo-site-importer/inc/di-themes/di-blog/import-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/di-themes-demo-site-importer/inc/ocdi/vendor/awesomemotive/wp-content-importer-v2/src/Importer.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/di-themes-demo-site-importer/inc/ocdi/inc/WPCLICommands.php:12
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLoggerCLI' not found in wp-content/plugins/di-themes-demo-site-importer/inc/ocdi/inc/Logger.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: website, di themes, demo, theme, import
di-themes-demo-site-importer/di-themes-demo-site-importer.php Passed 13 tests
The main PHP file in "Di Themes Demo Site Importer" ver. 1.1.7 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
Import demo website of theme developed by Di Themes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin149,426 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 6 | 540 | 621 | 140,192 |
PHP | 44 | 1,918 | 2,873 | 7,606 |
CSS | 3 | 181 | 21 | 914 |
JavaScript | 3 | 197 | 136 | 611 |
JSON | 2 | 0 | 0 | 80 |
Markdown | 1 | 13 | 0 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 36.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 290.00 |
Average method complexity | 5.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 1 | 3.23% |
Methods | 272 | |
▷ Static methods | 47 | 17.28% |
▷ Public methods | 202 | 74.26% |
▷ Protected methods | 40 | 14.71% |
▷ Private methods | 30 | 11.03% |
Functions | 19 | |
▷ Named functions | 16 | 84.21% |
▷ Anonymous functions | 3 | 15.79% |
Constants | 13 | |
▷ Global constants | 11 | 84.62% |
▷ Class constants | 2 | 15.38% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin