Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.08ms] Passed 4 tests
A check of server-side resources used by User Profile Picture Social Networks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.85 ▼0.50 |
Dashboard /wp-admin | 3.36 ▲0.05 | 45.01 ▼0.35 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 44.55 ▼4.61 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.50 ▼14.86 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.71 ▲1.55 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by User Profile Picture Social Networks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.12 | 5.67 ▲4.01 | 42.01 ▼3.72 |
Dashboard /wp-admin | 2,209 ▲21 | 5.88 ▼0.02 | 102.92 ▼6.45 | 39.52 ▲0.72 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 35.12 ▼6.50 | 33.76 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.12 ▲0.06 | 679.97 ▼5.87 | 48.84 ▼2.36 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.21 ▼0.19 | 106.39 ▼2.20 | 45.70 ▲3.18 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'User_Profile_Picture_Social_Networks\\Plugin_Abstract' not found in wp-content/plugins/user-profile-picture-social-networks/php/class-plugin.php:13
- > PHP Fatal error
Uncaught Error: Interface 'User_Profile_Picture_Social_Networks\\Plugin_Interface' not found in wp-content/plugins/user-profile-picture-social-networks/php/class-plugin-abstract.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: block, user profile, social networks, blocks, users
user-profile-picture-social-networks/user-profile-picture-social-networks.php 85% from 13 tests
The principal PHP file in "User Profile Picture Social Networks" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,038 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 161 | 560 | 904 |
JavaScript | 4 | 10 | 7 | 126 |
CSS | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 59 | 93.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.35% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin