Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.39ms] Passed 4 tests
A check of server-side resources used by One Click Demo Import
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.69 ▼2.51 |
Dashboard /wp-admin | 3.38 ▲0.03 | 47.14 ▼15.68 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.62 ▲3.67 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 82.34 ▼3.04 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.07 ▲4.10 |
Import Demo Data /wp-admin/admin.php?page=pt-one-click-demo-import | 3.18 | 29.10 |
Import Demo Data /wp-admin/themes.php?page=one-click-demo-import | 3.44 | 34.52 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for One Click Demo Import
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲72 | 14.07 ▼0.32 | 1.91 ▲0.22 | 40.98 ▼2.89 |
Dashboard /wp-admin | 2,202 ▲24 | 5.59 ▼0.13 | 90.54 ▼15.72 | 40.15 ▼3.99 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.00 | 39.47 ▲3.86 | 36.55 ▲5.11 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.13 ▼0.06 | 570.61 ▼47.59 | 69.76 ▲16.66 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.32 ▲0.15 | 100.55 ▲4.38 | 44.00 ▲0.14 |
Import Demo Data /wp-admin/admin.php?page=pt-one-click-demo-import | 28 | 0.41 | 0.07 | 3.59 |
Import Demo Data /wp-admin/themes.php?page=one-click-demo-import | 1,177 | 1.68 | 26.62 | 56.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/one-click-demo-import/one-click-demo-import.php
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'OCDI\\PluginInstaller' not found in wp-content/plugins/one-click-demo-import/views/install-plugins.php:10
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/one-click-demo-import/inc/PluginInstallerSkinSilent.php on line 11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/one-click-demo-import/inc/PluginInstallerSkinSilent.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/one-click-demo-import/vendor/awesomemotive/wp-content-importer-v2/src/WXRImporter.php:7
- > PHP Fatal error
Uncaught Error: Class 'OCDI\\CreateDemoContent\\DemoContentCreator' not found in wp-content/plugins/one-click-demo-import/views/create-content.php:10
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLoggerCLI' not found in wp-content/plugins/one-click-demo-import/inc/Logger.php:10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/one-click-demo-import/inc/PluginInstallerSkin.php on line 11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/one-click-demo-import/inc/PluginInstallerSkin.php on line 11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/one-click-demo-import/inc/PluginInstallerSkin.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'OCDI\\PluginInstaller' not found in wp-content/plugins/one-click-demo-import/views/import.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=pt-one-click-demo-import
- > Network (severe)
wp-admin/admin.php?page=pt-one-click-demo-import - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: widgets, theme options, demo, import, settings...
one-click-demo-import/one-click-demo-import.php Passed 13 tests
Analyzing the main PHP file in "One Click Demo Import" version 3.2.0
130 characters long description:
Import your content, widgets and theme settings with one click. Theme authors! Enable simple demo import for your theme demo data.
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
Everything looks great! No dangerous files found in this plugin9,741 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 1,452 | 2,545 | 5,421 |
XML | 10 | 277 | 397 | 2,372 |
CSS | 2 | 13 | 1 | 1,261 |
JavaScript | 2 | 125 | 114 | 455 |
SVG | 18 | 0 | 0 | 127 |
JSON | 2 | 0 | 0 | 80 |
Markdown | 1 | 14 | 0 | 25 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 31.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 291.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 1 | 3.85% |
Methods | 251 | |
▷ Static methods | 44 | 17.53% |
▷ Public methods | 176 | 70.12% |
▷ Protected methods | 40 | 15.94% |
▷ Private methods | 35 | 13.94% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected