Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.33MB] [CPU: ▼4.46ms] Passed 4 tests
An overview of server-side resources used by HTML Import 2
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 37.47 ▼2.21 |
Dashboard /wp-admin | 3.64 ▲0.34 | 44.73 ▼6.88 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 48.70 ▲1.82 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 82.67 ▼6.83 |
Media Library /wp-admin/upload.php | 3.56 ▲0.34 | 37.37 ▼1.91 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HTML Import 2
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 13.95 ▼0.41 | 1.81 ▲0.21 | 41.78 ▼6.06 |
Dashboard /wp-admin | 2,196 ▲22 | 5.48 ▼0.24 | 88.11 ▼11.55 | 37.06 ▼12.78 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.02 | 34.97 ▼9.36 | 34.02 ▼7.84 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.10 ▲0.23 | 606.42 ▲13.43 | 49.78 ▼4.41 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.23 | 94.33 ▼5.64 | 41.94 ▼0.17 |
HTML Import /wp-admin/html-import.php | 26 | 0.42 | 0.09 | 14.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/import-html-pages/html-import-options.php:928
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/import-html-pages/html-import-options.php:928
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/html-import.php
- > Network (severe)
wp-admin/html-import.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: static files, frontpage, word, import, taxonomies...
import-html-pages/html-import.php 85% from 13 tests
This is the main PHP file of "HTML Import 2" version 2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("import-html-pages.php" instead of "html-import.php")
- Description: The description should be shorter than 140 characters (currently 270 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,862 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 255 | 181 | 1,796 |
JavaScript | 1 | 4 | 6 | 38 |
CSS | 1 | 0 | 1 | 28 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 106.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 209.00 |
Average method complexity | 8.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin