Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼143.59ms] Passed 4 tests
Analyzing server-side resources used by HTML5 Placeholder Polyfill
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 38.59 ▲22.23 |
Dashboard /wp-admin | 3.06 ▲0.01 | 36.48 ▼5.34 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 47.20 ▲5.31 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 89.42 ▼575.88 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 35.82 ▲1.55 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for HTML5 Placeholder Polyfill
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,834 ▲238 | 16.58 ▲1.13 | 11.33 ▲2.55 | 49.02 ▼2.93 |
Dashboard /wp-admin | 2,982 ▲48 | 5.92 ▼0.02 | 139.32 ▼16.08 | 118.65 ▲5.69 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.69 ▲0.01 | 70.40 ▼2.96 | 99.68 ▲7.01 |
Add New Post /wp-admin/post-new.php | 1,500 ▼0 | 18.85 ▲0.36 | 387.47 ▲17.45 | 120.39 ▼0.43 |
Media Library /wp-admin/upload.php | 1,813 ▲6 | 5.04 ▲0.04 | 144.98 ▼9.65 | 129.73 ▼5.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/html5-placeholder-polyfill/html5-placeholder-polyfill.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
9 plugin tags: internet explorer, form, html5, jquery, input...
html5-placeholder-polyfill/html5-placeholder-polyfill.php Passed 13 tests
The main file in "HTML5 Placeholder Polyfill" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
Mimics HTML5 placeholder behavior in browsers that don't support it natively.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin157 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 23 | 18 | 147 |
PHP | 1 | 8 | 16 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin