Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.49ms] Passed 4 tests
Server-side resources used by Database Anonymization
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.24 ▼0.54 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.22 ▲5.38 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 46.68 ▲0.05 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 83.60 ▼10.05 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.41 ▲0.58 |
Database Anonymization /wp-admin/tools.php?page=database-anonymization-main | 3.34 | 32.43 |
Server storage [IO: ▲0.51MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 15 new options
New WordPress options |
---|
dbanon_streets |
db_upgraded |
dbanon_names |
dbanon_ibans |
dbanon_domains |
dbanon_rows |
widget_theysaidso_widget |
dbanon_cities |
dbanon_agents |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Database Anonymization
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.36 ▼0.26 | 1.79 ▲0.19 | 42.02 ▲3.25 |
Dashboard /wp-admin | 2,200 ▲23 | 5.55 ▼0.05 | 83.09 ▼0.02 | 38.20 ▼5.17 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.05 ▲0.08 | 36.24 ▲0.97 | 30.59 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.91 ▼0.71 | 656.07 ▼24.55 | 55.77 ▲5.05 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.21 ▲0.02 | 99.21 ▲4.99 | 41.64 ▼4.96 |
Database Anonymization /wp-admin/tools.php?page=database-anonymization-main | 1,519 | 1.69 | 27.22 | 42.17 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function DBAnon\\esc_url() in wp-content/plugins/database-anonymization/admin/partials/database-anonymization-admin-main-page.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function DBAnon\\plugin_dir_path() in wp-content/plugins/database-anonymization/admin/class-transformation.php:2804
- > 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 97% 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
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
database-anonymization/database-anonymization.php Passed 13 tests
The primary PHP file in "Database Anonymization" version 1.2.0 is used by WordPress to initiate all plugin functionality
136 characters long description:
Anonymize personal data (PII) in WordPress databases for development and testing. Comply with rules and regulations, prevent data leaks.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin7,007 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 426 | 2,891 | 4,885 |
PO File | 1 | 254 | 371 | 967 |
JSON | 8 | 2 | 0 | 664 |
JavaScript | 1 | 29 | 184 | 291 |
CSS | 1 | 43 | 4 | 200 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 55.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 293.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 169 | |
▷ Static methods | 2 | 1.18% |
▷ Public methods | 99 | 58.58% |
▷ Protected methods | 44 | 26.04% |
▷ Private methods | 26 | 15.38% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 9 | |
▷ Global constants | 2 | 22.22% |
▷ Class constants | 7 | 77.78% |
▷ Public constants | 1 | 14.29% |
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