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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.79ms] Passed 4 tests
An overview of server-side resources used by TruAnon Identity
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 43.82 ▲1.75 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.35 ▼9.63 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.72 ▼4.07 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 94.30 ▼3.20 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.66 ▲3.09 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
truanon_verification_options |
widget_recent-comments |
theysaidso_admin_options |
truanon_db_version |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for TruAnon Identity
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲155 | 13.39 ▼1.28 | 9.31 ▲7.63 | 47.50 ▲7.06 |
Dashboard /wp-admin | 2,208 ▲28 | 5.54 ▼0.12 | 87.27 ▼3.23 | 41.49 ▼2.62 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 2.02 ▲0.02 | 34.27 ▼3.93 | 35.59 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.40 ▲0.37 | 666.38 ▼1.25 | 56.05 ▼3.84 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.23 ▲0.08 | 94.19 ▼17.30 | 48.10 ▲2.04 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- truanon_verification_options
- can_compress_scripts
- truanon_db_version
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/truanon-identity/includes/public/forms/ww-truanon-profile-display.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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: identity, social, spam, safety, fraud...
truanon-identity/truanon-identity.php 77% from 13 tests
"TruAnon Identity" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected753 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 139 | 245 | 625 |
JavaScript | 2 | 24 | 39 | 122 |
CSS | 2 | 0 | 4 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/KnownHigh.png | 12.06KB | 5.01KB | ▼ 58.49% |
includes/images/Unknown.png | 11.21KB | 4.70KB | ▼ 58.09% |
includes/images/KnownLow.png | 12.01KB | 4.96KB | ▼ 58.71% |
includes/images/01.png | 34.14KB | 8.47KB | ▼ 75.19% |
includes/images/UnknownOwner.png | 11.99KB | 4.95KB | ▼ 58.75% |