Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.48ms] Passed 4 tests
Analyzing server-side resources used by Blaze Demo Importer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.40 ▼1.48 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.10 ▲3.25 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 43.64 ▼6.20 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.78 ▼1.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.69 ▼0.52 |
Server storage [IO: ▲0.18MB] [DB: ▲0.55MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Blaze Demo Importer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.11 | 1.76 ▲0.09 | 37.68 ▼4.98 |
Dashboard /wp-admin | 2,198 ▲31 | 5.61 ▼0.05 | 84.36 ▼16.20 | 42.85 ▲5.73 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.98 ▼0.02 | 34.51 ▼5.01 | 33.42 ▼5.09 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.24 ▼5.38 | 599.84 ▼17.97 | 70.27 ▲28.05 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▼0.00 | 96.49 ▼5.46 | 43.56 ▼1.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.55MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% 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 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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/blaze-demo-importer/classes/class-customizer-option.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/blaze-demo-importer/wordpress-importer/class-wp-import.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
7 plugin tags: one click import, import, blazethemes, demo importer, widgets...
blaze-demo-importer/blaze-demo-importer.php Passed 13 tests
The main PHP script in "Blaze Demo Importer" version 1.0.4 is automatically included on every request by WordPress
40 characters long description:
Easily imports demo 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
Everything looks great! No dangerous files found in this plugin2,953 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 592 | 607 | 2,555 |
CSS | 1 | 35 | 3 | 210 |
JavaScript | 1 | 7 | 4 | 188 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 6.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 2 | 20.00% |
Methods | 97 | |
▷ Static methods | 14 | 14.43% |
▷ Public methods | 89 | 91.75% |
▷ Protected methods | 3 | 3.09% |
▷ Private methods | 5 | 5.15% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 8 | |
▷ Global constants | 8 | 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
There were not PNG files found in your plugin