10% buffer-my-post

Code Review | WordPress Buffer - HYPESocial. Social Media Auto Post, Social Media Auto Publish and Schedule

WordPress plugin WordPress Buffer - HYPESocial. Social Media Auto Post, Social Media Auto Publish and Schedule scored 10% from 54 tests.

About plugin

  • Plugin page: buffer-my-post
  • Plugin version: 2020.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.6
  • WordPress version: 6.3.1
  • First release: Oct 6, 2013
  • Latest release: Apr 7, 2022
  • Number of updates: 71
  • Update frequency: every 43.7 days
  • Top authors: dejanmarkovic (94.37%)matharuajay (7.04%)

Code review

54 tests

User reviews

18 reviews

Install metrics

200+ active / 48,999 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/buffer-my-post/hsb-core.php+62
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▲4.54MB] [CPU: ▼24.47ms] Passed 4 tests

Server-side resources used by WordPress Buffer - HYPESocial. Social Media Auto Post, Social Media Auto Publish and Schedule
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /8.53 ▲5.0733.78 ▼9.48
Dashboard /wp-admin8.55 ▲5.2433.21 ▼15.79
Posts /wp-admin/edit.php8.55 ▲5.1931.23 ▼12.16
Add New Post /wp-admin/post-new.php8.55 ▲2.6634.93 ▼60.44
Media Library /wp-admin/upload.php8.55 ▲5.3242.07 ▲7.72
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.5535.23
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins8.6931.85

Server storage [IO: ▲8.00MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 212 new files
Database: no new tables, 12 new options
New WordPress options
fs_accounts
widget_recent-posts
widget_recent-comments
fs_active_plugins
can_compress_scripts
db_upgraded
widget_theysaidso_widget
fs_debug_mode
theysaidso_admin_options
hsb_opt_last_update
...

Browser metrics Passed 4 tests

Checking browser requirements for WordPress Buffer - HYPESocial. Social Media Auto Post, Social Media Auto Publish and Schedule
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲13313.64 ▼0.734.32 ▲2.3926.78 ▼16.27
Dashboard /wp-admin2,274 ▲864.86 ▼1.05110.75 ▲3.4046.51 ▲9.89
Posts /wp-admin/edit.php2,165 ▲792.07 ▲0.0641.22 ▲6.4943.16 ▲9.86
Add New Post /wp-admin/post-new.php1,562 ▲2823.27 ▲0.27640.58 ▲14.8154.71 ▲7.00
Media Library /wp-admin/upload.php1,464 ▲764.28 ▲0.03109.44 ▲3.1153.92 ▲7.61
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,0841.7724.0327.96
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins9992.0926.5032.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/buffer-my-post/hsb-core.php+62
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • fs_gdpr
    • widget_theysaidso_widget
    • fs_active_plugins
    • can_compress_scripts
    • db_upgraded
    • fs_accounts
    • fs_debug_mode
    • widget_recent-comments
    • widget_recent-posts
    • 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
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=tgmpa-install-plugins
    • > Deprecated in wp-content/plugins/buffer-my-post/hsb-core.php+62
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

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 take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/buffer-my-post/includes/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/buffer-my-post/hsb-sidebar.php:4

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (56 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7 in buffer-my-post/assets to your readme.txt
You can look at the official readme.txt

buffer-my-post/buffer-my-post.php 92% from 13 tests

The main PHP script in "WordPress Buffer - HYPESocial. Social Media Auto Post, Social Media Auto Publish and Schedule" version 2020.1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 174 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected42,517 lines of code in 149 files:
LanguageFilesBlank linesComment linesLines of code
PHP1178,06417,94333,943
JavaScript111,7441,4187,112
CSS1512275973
Markdown1680214
HTML11618183
SVG20054
JSON20038

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity80.79
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.68
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes57
▷ Abstract classes23.51%
▷ Concrete classes5596.49%
▷ Final classes00.00%
Methods1,267
▷ Static methods17814.05%
▷ Public methods90471.35%
▷ Protected methods383.00%
▷ Private methods32525.65%
Functions119
▷ Named functions119100.00%
▷ Anonymous functions00.00%
Constants147
▷ Global constants11980.95%
▷ Class constants2819.05%
▷ Public constants28100.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
16 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/HypeSocialBufferPRO-logo-orange.png18.82KB7.90KB▼ 58.00%
images/banner-pro_255.png23.94KB11.65KB▼ 51.34%
documentation/assets/css/img/info.png0.67KB0.70KB0.00%
images/icons/facebook.png1.39KB0.50KB▼ 64.20%
documentation/assets/css/img/warning.png0.59KB0.50KB▼ 14.99%