90% bamboo-social

Code Review | Bamboo Social

WordPress plugin Bamboo Social scored 90% from 54 tests.

About plugin

  • Plugin page: bamboo-social
  • Plugin version: 1.1.3 ...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Mar 2, 2018
  • Number of updates: 11
  • Update frequency: every 58.9 days
  • Top authors: bamboosolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,028 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.27ms] Passed 4 tests

Server-side resources used by Bamboo Social
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.51 ▼3.87
Dashboard /wp-admin3.37 ▲0.0647.74 ▼1.30
Posts /wp-admin/edit.php3.42 ▲0.0650.37 ▼0.75
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.96 ▲6.85
Media Library /wp-admin/upload.php3.29 ▲0.0636.35 ▲0.83

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 13 new options
New WordPress options
bamboo_social_google_link
widget_theysaidso_widget
theysaidso_admin_options
widget_bamboo_social
bamboo_social_twitter_link
db_upgraded
can_compress_scripts
bamboo_social_linkedin_link
bamboo_social_instagram_link
bamboo_social_initialised
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bamboo Social
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.33 ▼1.051.91 ▼0.2237.43 ▼12.10
Dashboard /wp-admin2,218 ▲304.85 ▼0.07109.98 ▲1.8445.10 ▲5.61
Posts /wp-admin/edit.php2,101 ▲92.04 ▼0.0040.32 ▼1.6840.94 ▲2.23
Add New Post /wp-admin/post-new.php1,552 ▲1018.06 ▼0.30598.57 ▼32.9556.70 ▲2.39
Media Library /wp-admin/upload.php1,394 ▲64.23 ▲0.0297.64 ▼3.5041.21 ▼4.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 13 options
    • bamboo_social_google_link
    • bamboo_social_linkedin_link
    • widget_theysaidso_widget
    • db_upgraded
    • bamboo_social_twitter_link
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • bamboo_social_initialised
    • theysaidso_admin_options
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: social media, widgets, shortcodes

bamboo-social/bamboo-social.php 92% from 13 tests

The main PHP file in "Bamboo Social" ver. 1.1.3 ... adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1.1.3 ...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin362 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP110248293
CSS117269

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin