Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.89MB] [CPU: ▼35.55ms] Passed 4 tests
Analyzing server-side resources used by FormDesigner - online web form builder
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.88 ▼3.78 |
Dashboard /wp-admin | 3.06 ▼0.29 | 25.97 ▼34.78 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 23.29 ▼22.32 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.83 | 22.51 ▼73.74 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 23.48 ▼11.34 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for FormDesigner - online web form builder
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 14.46 ▼0.22 | 1.74 ▲0.10 | 42.52 ▲3.20 |
Dashboard /wp-admin | 2,221 ▲36 | 5.82 ▼0.06 | 94.01 ▼9.59 | 79.35 ▲39.02 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▲0.02 | 34.29 ▼4.08 | 32.83 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,527 ▼12 | 23.12 ▲0.20 | 706.67 ▲126.01 | 50.34 ▼3.43 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.13 ▼0.09 | 102.59 ▲5.51 | 46.08 ▲3.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- 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
Good news, no errors were detected
SRP 0% 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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/formdesigner/views/code.php
- > /wp-content/plugins/formdesigner/formdesigner.php
- > /wp-content/plugins/formdesigner/views/redirect.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/formdesigner/views/popup.php:10
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/formdesigner/views/code.php on line 4
- > PHP Notice
Undefined variable: redirectUrl in wp-content/plugins/formdesigner/views/redirect.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/formdesigner/views/code.php on line 1
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/formdesigner/views/code.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== formdesigner ===
) - Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
formdesigner/formdesigner.php Passed 13 tests
Analyzing the main PHP file in "FormDesigner - online web form builder" version 2.2.0
129 characters long description:
Multifunctional constructor of web forms, surveys, quizzes and calculators in real time. No special knowledge or skills required.
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
Success! There were no dangerous files found in this plugin804 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 52 | 27 | 384 |
JavaScript | 3 | 29 | 0 | 310 |
CSS | 2 | 5 | 0 | 56 |
PO File | 1 | 14 | 14 | 46 |
SVG | 1 | 0 | 1 | 8 |
PHP code Passed 2 tests
A short review 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.23 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 70.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 29.63% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/logo.png | 1.15KB | 0.19KB | ▼ 83.36% |
src/menu_icon.png | 1.19KB | 0.25KB | ▼ 79.21% |