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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.44MB] [CPU: ▲1.95ms] Passed 4 tests
Server-side resources used by Load HTML Files
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 49.23 ▲7.26 |
Dashboard /wp-admin | 3.78 ▲0.48 | 90.73 ▲41.30 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 55.12 ▲0.72 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 94.67 ▼12.52 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 45.71 ▲12.32 |
HTML files Categories /wp-admin/edit-tags.php?taxonomy=html_files_category&post_type=html_files | 3.62 | 43.56 |
Add New /wp-admin/post-new.php?post_type=html_files | 3.75 | 53.51 |
All HTML files /wp-admin/edit.php?post_type=html_files | 3.73 | 45.54 |
Settings /wp-admin/edit.php?post_type=html_files&page=load-html-files-settings | 3.60 | 41.85 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
load-html-files_review |
load-html-files_donate |
Browser metrics Passed 4 tests
Load HTML Files: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲115 | 13.25 ▼1.39 | 2.07 ▲0.06 | 40.01 ▼4.04 |
Dashboard /wp-admin | 2,250 ▲65 | 5.87 ▲0.00 | 102.05 ▼9.34 | 40.24 ▼2.05 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.05 ▲0.07 | 39.48 ▼0.57 | 35.15 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 18.43 ▼4.77 | 616.59 ▼66.55 | 62.75 ▲8.77 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.20 ▲0.02 | 95.06 ▼8.74 | 45.12 ▼1.37 |
HTML files Categories /wp-admin/edit-tags.php?taxonomy=html_files_category&post_type=html_files | 1,298 | 2.14 | 27.01 | 28.68 |
Add New /wp-admin/post-new.php?post_type=html_files | 1,762 | 2.76 | 54.99 | 41.22 |
All HTML files /wp-admin/edit.php?post_type=html_files | 1,109 | 1.93 | 30.58 | 29.56 |
Settings /wp-admin/edit.php?post_type=html_files&page=load-html-files-settings | 1,377 | 2.39 | 40.26 | 35.11 |
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-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Load_HTML_Files\\Admin\\Admin_Pages' not found in wp-content/plugins/load-html-files/admin/class-admin-settings.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: import html, sailwave import, html importer, load html files, html files...
load-html-files/load-html-files.php Passed 13 tests
Analyzing the main PHP file in "Load HTML Files" version 1.0.0
32 characters long description:
Autocreate posts from HTML files
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,201 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 370 | 744 | 1,902 |
PO File | 2 | 44 | 48 | 176 |
JSON | 1 | 0 | 0 | 46 |
JavaScript | 1 | 7 | 4 | 41 |
SVG | 1 | 1 | 1 | 36 |
CSS | 1 | 2 | 1 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 116 | |
▷ Static methods | 27 | 23.28% |
▷ Public methods | 102 | 87.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 12.07% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
14 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/alanef/plugindonation_lib/images/QRcodes/BMAC.png | 22.62KB | 2.44KB | ▼ 89.23% |
vendor/alanef/plugindonation_lib/images/QRcodes/BCH.png | 7.86KB | 1.87KB | ▼ 76.24% |
vendor/alanef/plugindonation_lib/images/QRcodes/ETH.png | 7.39KB | 1.74KB | ▼ 76.47% |
vendor/alanef/plugindonation_lib/images/logos/PPcards.png | 5.42KB | 5.35KB | ▼ 1.15% |
vendor/alanef/plugindonation_lib/images/logos/DOGE.png | 35.94KB | 14.35KB | ▼ 60.06% |