68% wp-to-buffer

Code Review | Auto Post, Auto Publish and Schedule to Facebook, Twitter, LinkedIn - WP to Buffer

WordPress plugin Auto Post, Auto Publish and Schedule to Facebook, Twitter, LinkedIn - WP to Buffer scored68%from 54 tests.

About plugin

  • Plugin page: wp-to-buffer
  • Plugin version: 3.9.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 30, 2012
  • Latest release: Oct 9, 2023
  • Number of updates: 191
  • Update frequency: every 21.9 days
  • Top authors: wpzinc (51.31%)n7studios (49.21%)

Code review

54 tests

User reviews

104 reviews

Install metrics

7,000+ active /405,049 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.66MB] [CPU: ▲2,068.02ms] 75% from 4 tests

This is a short check of server-side resources used by Auto Post, Auto Publish and Schedule to Facebook, Twitter, LinkedIn - WP to Buffer
Please have a look at the following items
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 2,068.02ms on /wp-admin/admin.php?page=wp-to-buffer-upgrade)
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2747,502.81 ▲8,327.35
Dashboard /wp-admin3.74 ▲0.2747,896.33 ▲8,233.06
Posts /wp-admin/edit.php4.50 ▲1.1065.76 ▲13.06
Add New Post /wp-admin/post-new.php6.99 ▲1.06109.21 ▲12.69
Media Library /wp-admin/upload.php4.31 ▲1.0351.86 ▲13.27
Settings /wp-admin/admin.php?page=wp-to-buffer-settings4.3146.95
Logs /wp-admin/admin.php?page=wp-to-buffer-log4.3546.60
Upgrade /wp-admin/admin.php?page=wp-to-buffer-upgrade2.3110.13

Server storage [IO: ▲1.11MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 398 new files
Database: 1 new table, 9 new options
New tables
wp_to_buffer_log
New WordPress options
can_compress_scripts
widget_recent-comments
wp-to-buffer-pro-log
wp-to-buffer-pro-post
widget_theysaidso_widget
widget_recent-posts
wp-to-buffer-version
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Auto Post, Auto Publish and Schedule to Facebook, Twitter, LinkedIn - WP to Buffer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲11414.25 ▼0.311.63 ▲0.0544.50 ▲3.08
Dashboard /wp-admin2,269 ▲985.59 ▲0.0286.15 ▼2.1683.82 ▲43.61
Posts /wp-admin/edit.php2,172 ▲721.98 ▼0.0240.38 ▼2.6936.28 ▲1.56
Add New Post /wp-admin/post-new.php6,564 ▲5,03629.19 ▲6.15958.66 ▲271.0372.62 ▲17.71
Media Library /wp-admin/upload.php1,468 ▲684.22 ▼0.02115.19 ▼0.0985.94 ▲35.04
Settings /wp-admin/admin.php?page=wp-to-buffer-settings1,0503.0943.1283.65
Logs /wp-admin/admin.php?page=wp-to-buffer-log1,5041.9926.6235.30
Upgrade /wp-admin/admin.php?page=wp-to-buffer-upgrade3,22112.53386.35156.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_to_buffer_log
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-comments
    • db_upgraded
    • wp-to-buffer-version
    • wp-to-buffer-pro-log
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • wp-to-buffer-pro-post
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 91 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-to-buffer-upgrade
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 91 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-to-buffer-upgrade
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

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
The following issues need your attention
  • 28× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-to-buffer/includes/cron.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-to-buffer/lib/views/settings-post-action-status.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wp-to-buffer/lib/includes/class-wp-to-social-pro-log-table.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-to-buffer/lib/views/log.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-to-buffer/_modules/dashboard/views/sidebar-upgrade.php:14
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-to-buffer/_modules/dashboard/views/footer-upgrade-embedded.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-to-buffer/_modules/dashboard/views/modal.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-to-buffer/wp-to-buffer.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-to-buffer/lib/views/settings-post-action.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-to-buffer/lib/views/settings-post.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: buffer, social media scheduling, auto publish, auto post, social media automation

wp-to-buffer/wp-to-buffer.php Passed 13 tests

"Auto Post, Auto Publish and Schedule to Facebook, Twitter, LinkedIn - WP to Buffer" version 3.9.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
129 characters long description:
Send WordPress Pages, Posts or Custom Post Types to your Buffer (buffer.com) account for scheduled publishing to social networks.

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
There were no executable files found in this plugin15,607 lines of code in 396 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript421,6692,2476,688
PHP491,9404,8496,132
Sass523402,098
SVG29702686
CSS3003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity37.71
▷ Minimum class complexity2.00
▷ Maximum class complexity150.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods269
▷ Static methods10.37%
▷ Public methods21178.44%
▷ Protected methods20.74%
▷ Private methods5620.82%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin