Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.63ms] Passed 4 tests
A check of server-side resources used by Easy Inputs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 32.63 ▼6.93 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.42 ▼3.34 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.32 ▼3.50 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 81.65 ▼12.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.32 ▲1.88 |
Server storage [IO: ▲1.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Inputs
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.28 ▼1.14 | 1.66 ▼0.10 | 40.22 ▼5.08 |
Dashboard /wp-admin | 2,203 ▲24 | 4.86 ▼0.02 | 103.13 ▲0.26 | 40.46 ▼7.48 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.07 | 36.22 ▼3.51 | 33.94 ▲1.75 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.47 ▲0.77 | 609.88 ▼63.63 | 52.63 ▲1.02 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▲0.03 | 94.84 ▼7.24 | 40.64 ▼1.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/easy-inputs/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-inputs/tests/bootstrap.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/easy-inputs/tests/test-form-class.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/easy-inputs/tests/test-input-class.php:12
- > PHP Warning
require_once(wp-content/plugins/easy-inputs/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/easy-inputs/tests/bootstrap.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/easy-inputs/tests/test-easy-inputs.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 issues were found
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
5 plugin tags: html, forms, settings, metadata, inputs
easy-inputs/easy-inputs.php Passed 13 tests
The main file in "Easy Inputs" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
61 characters long description:
Error-free HTML form and input template engine for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected10,694 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 16 | 863 | 112 | 5,616 |
CSS | 6 | 109 | 24 | 1,748 |
JavaScript | 13 | 270 | 419 | 1,506 |
SVG | 7 | 4 | 4 | 869 |
PHP | 7 | 118 | 576 | 762 |
Bourne Shell | 1 | 21 | 7 | 99 |
XML | 3 | 2 | 0 | 46 |
Markdown | 1 | 9 | 0 | 35 |
JSON | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 2 | 2.86% |
▷ Public methods | 64 | 91.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 8.57% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
13 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/api/images/apple-touch-icon.png | 8.16KB | 3.82KB | ▼ 53.23% |
docs/api/images/apple-touch-icon-114x114.png | 27.67KB | 10.58KB | ▼ 61.78% |
docs/api/images/icon-trait-13x13.png | 0.33KB | 0.23KB | ▼ 30.59% |
docs/api/images/icon-interface-13x13.png | 0.30KB | 0.19KB | ▼ 37.99% |
docs/api/images/iviewer/iviewer.rotate_right.png | 1.45KB | 1.46KB | 0.00% |