Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Parse error in wp-content/plugins/anyform/admin/form-fields.php+129
syntax error, unexpected end of file
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.58ms] Passed 4 tests
An overview of server-side resources used by Any Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 57.22 ▲10.53 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.63 ▼17.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.28 ▲0.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.08 ▼14.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.20 ▲5.33 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Any Form
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.30 ▼0.12 | 2.03 ▲0.23 | 43.37 ▲1.32 |
Dashboard /wp-admin | 2,192 ▲17 | 5.58 ▼0.03 | 83.61 ▼22.72 | 37.94 ▼3.64 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▲0.00 | 39.71 ▲2.99 | 34.95 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 23.15 ▲0.10 | 651.03 ▼19.89 | 56.08 ▲1.10 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.24 ▲0.02 | 103.63 ▼3.07 | 48.27 ▲0.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/anyform/admin/contacts-list.php on line 8
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/anyform/admin/common-ui.php on line 13
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/anyform/admin/contacts-edit.php on line 98
- > PHP Fatal error
Uncaught Error: Call to undefined function Anyform\\plugin_dir_path() in wp-content/plugins/anyform/includes/functions.php:8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/anyform/admin/contacts-list.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/anyform/admin/contacts-list.php on line 8
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/anyform/public/form-ui.php on line 125
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/anyform/admin/form-fields.php on line 129
- > PHP Fatal error
Uncaught Error: Call to undefined function Anyform\\plugin_dir_path() in wp-content/plugins/anyform/any-form.php:17
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: ""
anyform/any-form.php 77% from 13 tests
Analyzing the main PHP file in "Any Form" version 1.0.1
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages/")
- Main file name: The principal plugin file should be the same as the plugin slug ("anyform.php" instead of "any-form.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin839 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 130 | 85 | 733 |
CSS | 1 | 16 | 0 | 106 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 22 | 48.89% |
▷ Public methods | 45 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin