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.09MB] [CPU: ▼6.57ms] Passed 4 tests
This is a short check of server-side resources used by Sirat Demo Importer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.99 ▲4.09 |
Dashboard /wp-admin | 3.43 ▲0.09 | 49.20 ▼17.20 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.99 ▲1.72 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 86.80 ▼14.90 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.51 ▲4.96 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Sirat Demo Importer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲98 | 13.67 ▼0.90 | 2.38 ▲0.59 | 36.14 ▼7.57 |
Dashboard /wp-admin | 2,249 ▲72 | 5.86 ▲0.17 | 102.34 ▲9.53 | 79.66 ▲38.97 |
Posts /wp-admin/edit.php | 2,183 ▲83 | 2.22 ▲0.19 | 41.96 ▲4.25 | 65.95 ▲26.87 |
Add New Post /wp-admin/post-new.php | 1,752 ▲221 | 22.70 ▼0.48 | 678.29 ▲8.03 | 48.08 ▼4.52 |
Media Library /wp-admin/upload.php | 1,473 ▲73 | 4.56 ▲0.36 | 109.42 ▲7.02 | 94.10 ▲47.94 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- 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)
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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sirat-demo-importer/whizzie/tgmpa/sirat-demo-importer-class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sirat-demo-importer/whizzie/tgmpa/sirat-demo-importer-class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/sirat-demo-importer/plugin.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/sirat-demo-importer/whizzie/config.php:17
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: templates, page builder, one click demo import, website builder, elementor
sirat-demo-importer/plugin.php 77% from 13 tests
"Sirat Demo Importer" version 0.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 571 characters long)
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.2")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sirat-demo-importer.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin6,340 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 862 | 1,908 | 3,286 |
CSS | 2 | 362 | 14 | 2,097 |
JavaScript | 4 | 222 | 51 | 888 |
SVG | 8 | 0 | 1 | 69 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 55.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 153 | |
▷ Static methods | 14 | 9.15% |
▷ Public methods | 130 | 84.97% |
▷ Protected methods | 23 | 15.03% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 11 | 78.57% |
▷ Class constants | 3 | 21.43% |
▷ Public constants | 3 | 100.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
8 PNG files occupy 0.42MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
whizzie/assets/img/VWThemes_banner_plugin.png | 18.80KB | 8.47KB | ▼ 54.97% |
whizzie/assets/img/adminIcon.png | 6.34KB | 2.68KB | ▼ 57.70% |
whizzie/assets/img/Customize-Icon.png | 28.40KB | 16.13KB | ▼ 43.19% |
whizzie/assets/img/Elementor-Icon.png | 9.34KB | 4.22KB | ▼ 54.84% |
whizzie/assets/img/Gutenberg-Icon.png | 50.22KB | 19.69KB | ▼ 60.79% |