Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.21ms] Passed 4 tests
A check of server-side resources used by Bstone Demo Importer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.28 ▼4.38 |
Dashboard /wp-admin | 3.31 ▼0.03 | 47.19 ▼22.93 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.92 ▼3.19 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.75 ▼9.22 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 33.45 ▼8.31 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Bstone Demo Importer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.30 ▼0.07 | 1.70 ▼0.02 | 40.10 ▲1.33 |
Dashboard /wp-admin | 2,195 ▲21 | 5.55 ▼0.07 | 85.50 ▼6.98 | 38.89 ▼5.93 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.04 ▲0.04 | 41.09 ▲2.30 | 35.93 ▼4.72 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.48 ▲5.89 | 601.31 ▼97.08 | 53.31 ▲0.26 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.25 ▼0.01 | 98.60 ▲1.35 | 43.45 ▼4.70 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/bstone-demo-importer/includes/importers/customize/class-oc-customize-demo-importer-setting.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader' not found in wp-content/plugins/bstone-demo-importer/includes/admin/class-demo-pack-upgrader.php:14
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #3 (Finally, Import the Demo with just one click.)
bstone-demo-importer/bstone-demo-importer.php Passed 13 tests
The main PHP script in "Bstone Demo Importer" version 1.0.1 is automatically included on every request by WordPress
82 characters long description:
Import Bstone theme demos content, widgets and theme settings with just one click.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected4,829 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 688 | 996 | 3,298 |
JavaScript | 7 | 386 | 358 | 1,263 |
Sass | 2 | 43 | 0 | 251 |
XML | 1 | 4 | 3 | 15 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 56.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 247.00 |
Average method complexity | 6.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 2 | 18.18% |
Methods | 106 | |
▷ Static methods | 7 | 6.60% |
▷ Public methods | 93 | 87.74% |
▷ Protected methods | 1 | 0.94% |
▷ Private methods | 12 | 11.32% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin