Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/wp-html-imports-helper/class.wp-documents.php+39
Declaration of WP_Documents::do_item($handle) should be compatible with WP_Dependencies::do_item($handle, $group = false)
Server metrics [RAM: ▼1.97MB] [CPU: ▼52.56ms] Passed 4 tests
An overview of server-side resources used by WP HTML Imports Helper
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.04 ▼32.73 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.62 ▼53.64 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.46 ▼37.43 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 4.93 ▼86.44 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.86 ▼29.02 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP HTML Imports Helper
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.24 ▼0.34 | 1.77 ▲0.18 | 40.73 ▲1.79 |
Dashboard /wp-admin | 2,195 ▲14 | 5.56 ▼0.15 | 86.23 ▼15.66 | 38.53 ▼0.91 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.02 | 39.11 ▲3.64 | 35.05 ▲0.31 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.09 ▼0.05 | 665.41 ▼15.80 | 63.70 ▲3.62 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.14 ▼0.05 | 92.34 ▼12.04 | 43.91 ▼3.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/wp-html-imports-helper/class.wp-documents.php+39
Declaration of WP_Documents::do_item($handle) should be compatible with WP_Dependencies::do_item($handle, $group = false)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-html-imports-helper/wp-html-import-helper.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Dependencies' not found in wp-content/plugins/wp-html-imports-helper/class.wp-documents.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: The plugin tags were not defined
wp-html-imports-helper/wp-html-import-helper.php 85% from 13 tests
Analyzing the main PHP file in "WP HTML Imports Helper" version 0.1
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-html-imports-helper.php" instead of "wp-html-import-helper.php")
- Domain Path: The domain path folder was not found ("/languages")
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
Success! There were no dangerous files found in this plugin131 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 40 | 191 | 131 |
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.38 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin