Benchmarks
Plugin footprint 23% 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
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/microblog-poster/microblogposter_oauth.php+101
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼0.26MB] [CPU: ▼51.51ms] Passed 4 tests
An overview of server-side resources used by Microblog Poster - Auto Publish on Social Media
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 10.40 ▼28.50 |
Dashboard /wp-admin | 3.77 ▲0.42 | 12.15 ▼51.01 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 12.29 ▼40.48 |
Add New Post /wp-admin/post-new.php | 3.77 ▼2.12 | 11.21 ▼86.03 |
Media Library /wp-admin/upload.php | 3.77 ▲0.53 | 10.50 ▼23.89 |
Server storage [IO: ▲2.15MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 103 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp_microblogposter_accounts |
wp_microblogposter_logs |
wp_microblogposter_user_accounts |
wp_microblogposter_items_meta |
wp_microblogposter_old_items |
New WordPress options |
---|
microblogposter_who_can_auto_publish |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Microblog Poster - Auto Publish on Social Media
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.26 ▼1.05 | 4.42 ▲2.72 | 38.19 ▼1.63 |
Dashboard /wp-admin | 2,210 ▲25 | 5.81 ▼0.04 | 98.16 ▼0.70 | 38.64 ▼5.89 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.00 | 41.10 ▼1.47 | 36.28 ▲1.18 |
Add New Post /wp-admin/post-new.php | 6,251 ▲4,723 | 26.07 ▲7.97 | 987.56 ▲362.27 | 60.47 ▼1.63 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.11 | 101.81 ▼2.10 | 44.26 ▲0.06 |
Microblog Poster /wp-admin/microblogposter.php | 26 | 0.44 | 0.11 | 13.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/microblog-poster/microblogposter_oauth.php+101
Array and string offset access syntax with curly braces is deprecated
- This plugin does not fully uninstall, leaving 5 tables in the database
- wp_microblogposter_items_meta
- wp_microblogposter_user_accounts
- wp_microblogposter_logs
- wp_microblogposter_accounts
- wp_microblogposter_old_items
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- microblogposter_who_can_auto_publish
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 18× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/microblog-poster/options/microblogposter_options_gmb.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/microblog-poster/microblogposter.php:6150
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/microblog-poster/options/microblogposter_options_bff.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/microblog-poster/options/microblogposter_options_lk.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/microblog-poster/options/microblogposter_options_new.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/microblog-poster/options/microblogposter_options_dg.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/microblog-poster/microblogposter_options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/microblog-poster/options/microblogposter_options_fbb.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/microblog-poster/options/microblogposter_options_pt.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/microblog-poster/options/microblogposter_options_vk.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/microblogposter.php
- > Network (severe)
wp-admin/microblogposter.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 29 tag instead of maximum 10
microblog-poster/microblogposter.php 92% from 13 tests
The main file in "Microblog Poster - Auto Publish on Social Media" v. 2.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("microblog-poster.php" instead of "microblogposter.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin24,022 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 1,436 | 961 | 13,150 |
PO File | 11 | 3,562 | 4,921 | 9,150 |
JavaScript | 4 | 293 | 125 | 872 |
CSS | 2 | 56 | 33 | 850 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,045)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 62.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,045.00 |
Average method complexity | 7.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 2 | 10.53% |
▷ Concrete classes | 17 | 89.47% |
▷ Final classes | 0 | 0.00% |
Methods | 192 | |
▷ Static methods | 104 | 54.17% |
▷ Public methods | 168 | 87.50% |
▷ Protected methods | 2 | 1.04% |
▷ Private methods | 22 | 11.46% |
Functions | 23 | |
▷ Named functions | 23 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
44 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/friendfeed_icon.png | 3.96KB | 1.30KB | ▼ 67.26% |
images/twitter_icon.png | 4.06KB | 1.32KB | ▼ 67.59% |
images/adfly_icon.png | 3.89KB | 1.33KB | ▼ 65.75% |
images/googlemybusinessl_icon.png | 0.88KB | 1.23KB | 0.00% |
images/buffer_icon.png | 0.40KB | 0.52KB | 0.00% |