Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/remove-fields/remove-fields.php+202
A non well formed numeric value encountered
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.40ms] Passed 4 tests
A check of server-side resources used by Remove Fields
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.23 ▼3.84 |
Dashboard /wp-admin | 3.53 ▲0.23 | 48.79 ▼1.35 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 46.52 ▲4.76 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 92.10 ▼8.54 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.30 ▲0.15 |
Server storage [IO: ▲0.88MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 106 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Remove Fields: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.26 ▼0.96 | 2.42 ▲0.30 | 42.43 ▼9.66 |
Dashboard /wp-admin | 2,211 ▲20 | 4.88 ▼0.10 | 97.34 ▼11.03 | 37.63 ▲1.11 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.06 ▲0.04 | 40.00 ▼1.12 | 34.10 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 23.20 ▲4.35 | 616.71 ▼12.46 | 49.30 ▲0.13 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.28 ▲0.06 | 96.16 ▲3.22 | 39.77 ▼0.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/remove-fields/vendor/raveren/kint/examples/overview.php
- 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'kintVariableData' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/inc/kintParser.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/classstatics.php:3
- > PHP Fatal error
Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/microtime.php:3
- > PHP Fatal error
Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/xml.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/remove-fields/vendor/tgmpa/tgm-plugin-activation/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/objectiterateable.php:3
- > PHP Fatal error
Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/color.php:2
- > PHP Fatal error
Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/classmethods.php:3
- > PHP Fatal error
Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/splobjectstorage.php:3
- > PHP Fatal error
Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/json.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== remove-fields ===
)
remove-fields/remove-fields.php 92% from 13 tests
The entry point to "Remove Fields" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin12,062 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 17 | 1,449 | 1,993 | 4,842 |
PHP | 36 | 1,163 | 2,594 | 4,615 |
Markdown | 5 | 224 | 0 | 880 |
LESS | 5 | 134 | 39 | 505 |
CSS | 4 | 0 | 3 | 397 |
JavaScript | 2 | 70 | 15 | 362 |
YAML | 2 | 11 | 27 | 259 |
JSON | 4 | 0 | 0 | 191 |
XML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 28.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 5.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 2 | 6.06% |
▷ Concrete classes | 31 | 93.94% |
▷ Final classes | 0 | 0.00% |
Methods | 214 | |
▷ Static methods | 64 | 29.91% |
▷ Public methods | 138 | 64.49% |
▷ Protected methods | 44 | 20.56% |
▷ Private methods | 32 | 14.95% |
Functions | 25 | |
▷ Named functions | 16 | 64.00% |
▷ Anonymous functions | 9 | 36.00% |
Constants | 13 | |
▷ Global constants | 2 | 15.38% |
▷ Class constants | 11 | 84.62% |
▷ Public constants | 11 | 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
No PNG images were found in this plugin