Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.04ms] Passed 4 tests
A check of server-side resources used by Required Fields
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 42.62 ▼1.60 |
Dashboard /wp-admin | 3.39 ▲0.09 | 54.76 ▲1.15 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 52.43 ▲2.80 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.63 ▼10.98 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.48 ▼0.73 |
Required Fields /wp-admin/options-general.php?page=Required_Fields | 3.29 | 35.75 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
rf_settings |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Required Fields
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.41 ▼0.14 | 1.65 ▼0.19 | 45.62 ▼0.61 |
Dashboard /wp-admin | 2,196 ▲19 | 5.65 ▲0.02 | 86.92 ▼16.26 | 44.85 ▲2.03 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.04 | 35.28 ▲0.96 | 37.76 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.12 ▼0.08 | 648.79 ▼26.16 | 54.32 ▲3.24 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.21 ▲0.06 | 97.91 ▼17.54 | 40.98 ▼15.49 |
Required Fields /wp-admin/options-general.php?page=Required_Fields | 1,196 | 1.94 | 30.90 | 33.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/required-fields/css/index.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/required-fields/images/index.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/required-fields/index.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/required-fields/required-fields.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/required-fields/includes/index.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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 require attention:
- Requires at least: The plugin version is formatted incorrectly
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
required-fields/required-fields.php Passed 13 tests
The main PHP file in "Required Fields" ver. 1.9.5 adds more information about the plugin and also serves as the entry point for this plugin
133 characters long description:
Required Fields can help you write your Posts, Pages without forgetting fields, if you forget something you'll be alerted about that!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin837 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 62 | 66 | 621 |
CSS | 1 | 12 | 0 | 216 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 20 | |
▷ Named functions | 20 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cover.png | 171.05KB | 57.25KB | ▼ 66.53% |
images/logo.png | 6.67KB | 3.37KB | ▼ 49.46% |