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 gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼10.24ms] Passed 4 tests
Server-side resources used by User Post On Social Network
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.82 ▼5.26 |
Dashboard /wp-admin | 3.40 ▲0.06 | 49.82 ▼13.91 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.63 ▲1.45 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 79.94 ▼14.00 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.31 ▼7.77 |
User Post On Social Network /wp-admin/options-general.php?page=user-post-social-network | 3.24 | 31.48 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User Post On Social Network
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲135 | 13.52 ▼1.09 | 9.61 ▲7.69 | 41.43 ▼3.63 |
Dashboard /wp-admin | 2,199 ▲19 | 5.57 ▼0.11 | 94.12 ▼3.57 | 41.40 ▼1.59 |
Posts /wp-admin/edit.php | 2,086 ▼11 | 2.03 ▲0.07 | 34.49 ▼2.15 | 37.58 ▲3.91 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.17 ▲0.12 | 637.69 ▼19.36 | 59.86 ▼0.08 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.19 ▼0.09 | 100.98 ▲0.24 | 44.50 ▲2.17 |
User Post On Social Network /wp-admin/options-general.php?page=user-post-social-network | 821 | 2.00 | 24.57 | 29.28 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=user-post-social-network
- > Notice in wp-content/plugins/user-post-on-social-network/user-post-social-network.php+80
Undefined offset: 1
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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-post-on-social-network/user-post-social-network.php:14
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: facebook, wordpress post on facebook, wordpress
user-post-on-social-network/user-post-social-network.php 92% from 13 tests
Analyzing the main PHP file in "User Post On Social Network" version 1.0
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("user-post-on-social-network.php" instead of "user-post-social-network.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,204 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 136 | 109 | 951 |
PHP | 2 | 35 | 37 | 227 |
CSS | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 7 | |
▷ Named functions | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin