Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼141.28ms] Passed 4 tests
Server-side resources used by HTML Code Snippet
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.01 ▲11.57 |
Dashboard /wp-admin | 3.07 ▲0.01 | 42.55 ▲0.48 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 41.41 ▼0.61 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 89.25 ▼557.30 |
Media Library /wp-admin/upload.php | 3.01 ▼0.00 | 32.65 ▼7.69 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
HTML Code Snippet: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,709 ▲113 | 15.92 ▲0.30 | 12.16 ▲2.51 | 48.22 ▲2.78 |
Dashboard /wp-admin | 2,967 ▲33 | 5.82 ▼0.16 | 136.25 ▼8.98 | 109.05 ▲6.32 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 63.76 ▼0.42 | 91.02 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,672 ▲172 | 18.87 ▲0.30 | 373.08 ▲8.53 | 107.29 ▼8.68 |
Media Library /wp-admin/upload.php | 1,751 ▼56 | 5.03 ▲0.02 | 141.77 ▼10.03 | 124.60 ▲0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wpsimpletools-html-code/wpsimpletools-html-code.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: html, javascript, script, analytics, html code...
wpsimpletools-html-code/wpsimpletools-html-code.php Passed 13 tests
The main PHP file in "HTML Code Snippet" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
108 characters long description:
Adds a field in 'Appearance' menu to manage pure HTML code in page footer (for script tags, analytics, css).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin27 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 8 | 10 | 27 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 files were detected