Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.63ms] Passed 4 tests
Server-side resources used by ThemeGrill Demo Importer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 44.79 ▲3.23 |
Dashboard /wp-admin | 3.37 ▲0.06 | 50.98 ▼2.12 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 53.32 ▼1.48 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 99.95 ▼6.15 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 42.98 ▲5.08 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for ThemeGrill Demo Importer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.26 ▲0.04 | 1.64 ▼0.05 | 40.04 ▼4.99 |
Dashboard /wp-admin | 2,208 ▲28 | 5.56 ▼0.08 | 89.11 ▼5.40 | 40.41 ▼4.46 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.01 ▼0.03 | 43.30 ▲5.64 | 36.42 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.54 ▲0.44 | 607.40 ▼69.56 | 51.50 ▼12.80 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.18 ▼0.09 | 98.94 ▼12.49 | 44.32 ▼6.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader' not found in wp-content/plugins/themegrill-demo-importer/includes/admin/class-demo-pack-upgrader.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/themegrill-demo-importer/includes/importers/customize/class-oc-customize-demo-importer-setting.php:14
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: importer, one click import, themegrill, demo, theme demos
themegrill-demo-importer/themegrill-demo-importer.php Passed 13 tests
The main PHP script in "ThemeGrill Demo Importer" version 1.9.4 is automatically included on every request by WordPress
95 characters long description:
Import ThemeGrill official themes demo content, widgets and theme settings with just one click.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected7,917 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 854 | 1,241 | 4,119 |
JavaScript | 9 | 520 | 497 | 2,515 |
CSS | 5 | 174 | 18 | 1,002 |
Sass | 2 | 51 | 0 | 281 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 49.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 265.00 |
Average method complexity | 6.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 2 | 14.29% |
Methods | 123 | |
▷ Static methods | 17 | 13.82% |
▷ Public methods | 108 | 87.80% |
▷ Protected methods | 3 | 2.44% |
▷ Private methods | 12 | 9.76% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin