Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.74ms] Passed 4 tests
A check of server-side resources used by Admin Form Framework
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 33.40 ▼22.45 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.64 ▼4.45 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 58.75 ▲13.37 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.44 ▼4.85 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.40 ▲0.81 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Admin Form Framework
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 14.48 ▲0.08 | 1.86 ▼0.47 | 43.12 ▼23.11 |
Dashboard /wp-admin | 2,206 ▲18 | 5.92 ▲0.13 | 106.09 ▼8.95 | 38.64 ▼4.30 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.03 | 40.98 ▲5.25 | 34.88 ▲1.52 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.29 ▼4.84 | 592.76 ▼80.05 | 52.05 ▲1.93 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.22 ▲0.02 | 94.84 ▼9.81 | 42.75 ▼2.18 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/admin-form-framework/views/select.php
- > /wp-content/plugins/admin-form-framework/views/description.php
- 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: field_name in wp-content/plugins/admin-form-framework/views/image.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/admin-form-framework/views/checkbox.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_textarea() in wp-content/plugins/admin-form-framework/views/textarea.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_mime_type_icon() in wp-content/plugins/admin-form-framework/views/image.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/admin-form-framework/views/text.php:10
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/admin-form-framework/views/select.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/admin-form-framework/views/radio.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/admin-form-framework/views/select.php on line 11
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/admin-form-framework/views/radio.php on line 10
- > PHP Notice
Undefined variable: field_name in wp-content/plugins/admin-form-framework/views/textarea.php on line 10
- > PHP Notice
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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: options, settings, custom, development, admin
admin-form-framework/class-aff.php 85% from 13 tests
The principal PHP file in "Admin Form Framework" v. 1.2.3 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("admin-form-framework.php" instead of "class-aff.php")
- Description: The description should be shorter than 140 characters (currently 196 characters long)
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 plugin595 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 98 | 261 | 423 |
JavaScript | 1 | 41 | 3 | 172 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin