Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▼0.85ms] Passed 4 tests
This is a short check of server-side resources used by Mizan Demo Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.64 | 43.63 ▲0.21 |
Dashboard /wp-admin | 3.94 ▲0.63 | 52.05 ▲0.93 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 52.61 ▲3.26 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 93.92 ▼7.82 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 41.35 ▲4.61 |
Install Plugins /wp-admin/themes.php?page=mizan-importer-tgmpa-install-plugins | 4.01 | 35.78 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mizan Demo Importer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 14.35 ▲0.00 | 1.84 ▲0.27 | 41.38 ▼6.54 |
Dashboard /wp-admin | 2,240 ▲66 | 5.55 ▼0.10 | 87.54 ▼9.52 | 56.39 ▲10.16 |
Posts /wp-admin/edit.php | 2,160 ▲57 | 2.17 ▲0.23 | 36.83 ▼5.70 | 48.42 ▲14.43 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 23.16 ▼0.48 | 619.80 ▼104.50 | 65.49 ▲7.86 |
Media Library /wp-admin/upload.php | 1,453 ▲53 | 4.18 ▼0.08 | 98.40 ▼14.52 | 62.09 ▲13.98 |
Install Plugins /wp-admin/themes.php?page=mizan-importer-tgmpa-install-plugins | 992 | 2.06 | 27.61 | 41.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant MDI_DIR - assumed 'MDI_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mizan-demo-importer/theme-wizard/tgm/tgm.php on line 2
- > PHP Warning
require(MDI_DIRtheme-wizard/tgm/class-tgm-plugin-activation.php): failed to open stream: No such file or directory in wp-content/plugins/mizan-demo-importer/theme-wizard/tgm/tgm.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/mizan-demo-importer/theme-wizard/config.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mizan-demo-importer/plugin.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/mizan-demo-importer/theme-wizard/tgm/class-tgm-plugin-activation.php:2012
- > PHP Fatal error
require(): Failed opening required 'MDI_DIRtheme-wizard/tgm/class-tgm-plugin-activation.php' (include_path='.:/usr/share/php') in wp-content/plugins/mizan-demo-importer/theme-wizard/tgm/tgm.php on line 2
- > PHP Warning
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: templates, one click demo import, website builder
mizan-demo-importer/plugin.php 92% from 13 tests
The main file in "Mizan Demo Importer" v. 0.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("mizan-demo-importer.php" instead of "plugin.php")
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 plugin4,415 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 524 | 1,710 | 2,714 |
CSS | 2 | 38 | 19 | 1,070 |
JavaScript | 3 | 96 | 41 | 631 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 58.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 140 | |
▷ Static methods | 13 | 9.29% |
▷ Public methods | 117 | 83.57% |
▷ Protected methods | 23 | 16.43% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.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
3 compressed PNG files occupy 0.03MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
theme-wizard/assets/images/battery.png | 9.22KB | 8.25KB | ▼ 10.49% |
theme-wizard/assets/images/plugin.png | 6.19KB | 5.24KB | ▼ 15.26% |
theme-wizard/assets/images/check-mark.png | 10.44KB | 9.66KB | ▼ 7.47% |